Class EliteXNetTurnoutManager

    • Method Detail

      • createNewTurnout

        @Nonnull
        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.
        Overrides:
        createNewTurnout in class XNetTurnoutManager
        Parameters:
        systemName - the system name to use for the new Turnout
        userName - the user name to use for the new Turnout
        Returns:
        the new Turnout or
        Throws:
        java.lang.IllegalArgumentException - if unsuccessful
      • message

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