Class EliteXNetTurnoutManager

    • Method Detail

      • createNewTurnout

        protected Turnout createNewTurnout​(@Nonnull
                                           java.lang.String systemName,
                                           java.lang.String userName)
                                    throws java.lang.IllegalArgumentException
        Create a new Turnout based on the system name. Assumes calling method has checked that a Turnout with this system name does not already exist. Internal method to invoke the factory, after all the logic for returning an existing Turnout has been invoked.
        createNewTurnout in class XNetTurnoutManager
        systemName - the system name to use for the new Turnout
        userName - the user name to use for the new Turnout
        the new Turnout or
        java.lang.IllegalArgumentException - if unsuccessful
      • message

        public void message​(XNetReply l)
        Listen for turnouts, creating them as needed
        Specified by:
        message in interface XNetListener
        message in class XNetTurnoutManager
        l - The received XNet message. Note that this same object may be presented to multiple users. It should not be modified here.