jmri
Interface PowerManager
- All Known Implementing Classes:
- CbusPowerManager, EasyDccPowerManager, EcosPowerManager, LnPowerManager, LnPr2PowerManager, Mx1PowerManager, NcePowerManager, SprogPowerManager, SRCPPowerManager, XNetPowerManager, XpaPowerManager
public interface PowerManager
Provide controls for layout power.
The PowerManager handles two states:
- On/Off which controls electrical power to the track
- Started/Stopped which controls the sending of packets to the layout
A layout may not have control over these, in which case attempts
to change them should return an exception. If the state cannot
be sensed, that should also return an exception.
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.
- Author:
- Bob Jacobsen Copyright (C) 2001
|
Field Summary |
static int |
OFF
|
static int |
ON
|
static int |
UNKNOWN
|
UNKNOWN
static final int UNKNOWN
- See Also:
- Constant Field Values
ON
static final int ON
- See Also:
- Constant Field Values
OFF
static final int OFF
- See Also:
- Constant Field Values
setPower
void setPower(int v)
throws JmriException
- Throws:
JmriException
getPower
int getPower()
throws JmriException
- Throws:
JmriException
dispose
void dispose()
throws JmriException
- Throws:
JmriException
addPropertyChangeListener
void addPropertyChangeListener(PropertyChangeListener p)
removePropertyChangeListener
void removePropertyChangeListener(PropertyChangeListener p)
Copyright © 1997 - 2009 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.
Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: