Class DCCppPowerManager

All Implemented Interfaces:
EventListener, PropertyChangeFirer, PropertyChangeProvider, AbstractMRListener, DCCppListener, PowerManager

DCCppPowerManager.java PowerManager implementation for controlling layout power
  • Constructor Details

  • Method Details

    • setPower

      public void setPower(int v) throws JmriException
      Set the Power status. After sending to the layout, requests power status update. Set the Power.
      Specified by:
      setPower in interface PowerManager
      Overrides:
      setPower in class AbstractPowerManager<DCCppSystemConnectionMemo>
      Parameters:
      v - the new power status.
      Throws:
      JmriException - if unable to send request.
    • dispose

      public void dispose() throws JmriException
      Description copied from interface: PowerManager
      Free resources when no longer used.
      Specified by:
      dispose in interface PowerManager
      Throws:
      JmriException - if unable to dispose.
    • message

      public void message(DCCppReply m)
      Description copied from interface: DCCppListener
      Member function that will be invoked by a DCCppInterface implementation to forward a DCC-EX message from the layout.
      Specified by:
      message in interface DCCppListener
      Parameters:
      m - The received DCC-EX message. Note that this same object may be presented to multiple users. It should not be modified here.
    • message

      public void message(DCCppMessage l)
      Description copied from interface: DCCppListener
      Member function that will be invoked by a DCCppInterface implementation to forward a DCC-EX message sent to the layout. Normally, this function will do nothing.
      Specified by:
      message in interface DCCppListener
      Parameters:
      l - The received DCC-EX message. Note that this same object may be presented to multiple users. It should not be modified here.
    • notifyTimeout

      public void notifyTimeout(DCCppMessage msg)
      Description copied from interface: DCCppListener
      Member function invoked by an DCCppInterface implementation to notify a sender that an outgoing message timed out and was dropped from the queue.
      Specified by:
      notifyTimeout in interface DCCppListener
      Parameters:
      msg - the message that timed out.
    • requestUpdateFromLayout

      public void requestUpdateFromLayout()
      Request the current command station status and request the trackmanager configuration. Request Track Power Status Update. Default implementation does nothing.
      Specified by:
      requestUpdateFromLayout in interface PowerManager