|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrit.automat.AbstractAutomaton
apps.cornwall.CrrSection
public abstract class CrrSection
Abstract base class for Cornwall RR automation.
Defines useful constants, and handles basic structure of hte update process.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class jmri.jmrit.automat.AbstractAutomaton |
|---|
AbstractAutomaton.MsgFrame |
| Field Summary | |
|---|---|
(package private) static int |
ACTIVE
|
(package private) static Sensor[] |
bo
Java array of Sensor objects corresponding to BO() occupancy sensors in the C/MRI code. |
(package private) static int |
CLOSED
|
(package private) static int |
DARK
|
(package private) static int |
FLASHYELLOW
|
(package private) static Sensor |
gate
Java sensor object representing the "gate" input |
(package private) static int |
GREEN
|
(package private) static int |
INACTIVE
|
(package private) NamedBean[] |
inputs
Array of sensors and/or turnouts needed as inputs; changes in these will kick off processing |
(package private) static org.slf4j.Logger |
log
|
(package private) static int |
RED
|
(package private) static Turnout[] |
si
Java array of Turnout objects corresponding to SI() signal outputs in the C/MRI code. |
(package private) SignalHead |
sig
References the signalhead to be controlled. |
(package private) static int |
THROWN
|
(package private) static Sensor[] |
tu
Java array of Sensor objects corresponding to TU() turnout sensors in the C/MRI code. |
(package private) static int |
YELLOW
|
| Fields inherited from class jmri.jmrit.automat.AbstractAutomaton |
|---|
promptOnWait |
| Constructor Summary | |
|---|---|
CrrSection()
|
|
| Method Summary | |
|---|---|
(package private) abstract void |
defineIO()
Locate and define the output Signal object, stored in sig |
protected boolean |
handle()
Watch sensors, and when it changes adjust outputs to match. |
protected void |
init()
Obtain the output object, sets the output to an initial state to make sure everything is consistent at the start. |
(package private) abstract void |
setOutput()
Calculate the signal settings |
| Methods inherited from class jmri.jmrit.automat.AbstractAutomaton |
|---|
getCount, getName, getThrottle, 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 |
| Field Detail |
|---|
static final int RED
static final int YELLOW
static final int GREEN
static final int DARK
static final int FLASHYELLOW
static final int ACTIVE
static final int INACTIVE
static final int CLOSED
static final int THROWN
SignalHead sig
NamedBean[] inputs
static Sensor gate
static Sensor[] tu
Initialization of the contents happens when the first CrrSection object constructor is run.
static Sensor[] bo
Initialization of the contents happens when the first CrrSection object constructor is run.
static Turnout[] si
Initialization of the contents happens when the first CrrSection object constructor is run.
static org.slf4j.Logger log
| Constructor Detail |
|---|
CrrSection()
| Method Detail |
|---|
abstract void setOutput()
abstract void defineIO()
protected void init()
init in class AbstractAutomatonprotected boolean handle()
handle in class AbstractAutomaton
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||