apps.cornwall
Class CrrInit
java.lang.Object
jmri.jmrit.automat.AbstractAutomaton
apps.cornwall.CrrInit
- All Implemented Interfaces:
- Runnable
public class CrrInit
- extends AbstractAutomaton
Start Cornwall RR initialization and automation.
Based on Crr0024.bas
- Author:
- Bob Jacobsen Copyright (C) 2003
|
Method Summary |
protected boolean |
handle()
Watch sensors, and when it changes adjust outputs to match. |
protected void |
init()
Obtain the input and output objects
This also sets the outpts to an initial state
to make sure everything is consistent at the start. |
| Methods inherited from class jmri.jmrit.automat.AbstractAutomaton |
getCount, getName, getThrottle, readServiceModeCV, run, setName, setTurnouts, start, stop, wait, waitChange, waitMsec, waitSensorActive, waitSensorActive, waitSensorChange, waitSensorChange, waitSensorInactive, waitSensorInactive, waitSensorState, waitSensorState, waitTurnoutConsistent, writeOpsModeCV, writeServiceModeCV |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CrrInit
public CrrInit()
init
protected void init()
- Obtain the input and output objects
This also sets the outpts to an initial state
to make sure everything is consistent at the start.
- Overrides:
init in class AbstractAutomaton
handle
protected boolean handle()
- Watch sensors, and when it changes adjust outputs to match.
- Overrides:
handle in class AbstractAutomaton
- Returns:
- Always returns true to continue operation
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: