Interface PowerManager
- All Superinterfaces:
PropertyChangeProvider
- All Known Implementing Classes:
AbstractPowerManager,BiDiBPowerManager,CbusPowerManager,DCCppPowerManager,DefaultPowerManager,EasyDccPowerManager,EcosPowerManager,JMRIClientPowerManager,LnPowerManager,LnPr2PowerManager,MarklinPowerManager,MqttPowerManager,MrcPowerManager,Mx1PowerManager,NcePowerManager,OlcbPowerManager,SprogPowerManager,SRCPPowerManager,TamsPowerManager,XNetPowerManager,XpaPowerManager
The PowerManager handles three states:
- On/Off which controls electrical power to the track
- an optional "Idle" state, where track power is alive but track-connected decoders may be un-controllable
Some connections, including some LocoNet-based connections, implement the "Idle" state. For these LocoNet-based connections, when the Power state is "Idle", the track power is alive and the command station is broadcasting "stop" to all mobile decoders. Other systems may implement different interpretation of the "Idle" state.
This file is part of JMRI.
JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
Field Summary
Fields -
Method Summary
Methods inherited from interface jmri.beans.PropertyChangeProvider
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Field Details
-
UNKNOWN
- See Also:
-
ON
- See Also:
-
OFF
- See Also:
-
IDLE
- See Also:
-
POWER
PropertyChangeEvents are fired with this property name."power"
- See Also:
-
-
Method Details
-
setPower
- Throws:
JmriException
-
getPower
-
dispose
- Throws:
JmriException
-
implementsIdle
-
getUserName
-