Package jmri.jmrit.ussctc
Class Follower
- java.lang.Object
-
- jmri.jmrit.ussctc.Follower
-
- All Implemented Interfaces:
Constants
public class Follower extends java.lang.Object implements Constants
Provide bean-like access to the collection of Logix, Routes, Memories, etc that make up a Follower.- See Also:
FollowerFrame
,FollowerPanel
,FollowerAction
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
invert
(package private) static java.lang.String
namePrefix
(package private) java.lang.String
output
(package private) static java.lang.String
routePrefix
(package private) java.lang.String
sensor
(package private) java.lang.String
veto
-
Fields inherited from interface jmri.jmrit.ussctc.Constants
commonNamePrefix, commonNameSuffix, nameDivider, pkgPrefix
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getInvert()
java.lang.String
getOutputName()
java.lang.String
getSensorName()
java.lang.String
getVetoName()
void
instantiate()
Create the underlying objects that implement this
-
-
-
Field Detail
-
routePrefix
static java.lang.String routePrefix
-
namePrefix
static final java.lang.String namePrefix
-
output
java.lang.String output
-
sensor
java.lang.String sensor
-
veto
java.lang.String veto
-
invert
boolean invert
-
-
Constructor Detail
-
Follower
public Follower(java.lang.String output, java.lang.String sensor, boolean invert, java.lang.String veto)
Create one from scratch- Parameters:
output
- Output turnout to be drivensensor
- Sensor checking for OS occupancyinvert
- route ISONACTIVE inverted.veto
- veto Sensor, or ""
-
Follower
public Follower(java.lang.String outputName) throws JmriException
Create an object to represent an existing Follower.- Parameters:
outputName
- name of output Turnout that drives the indicator- Throws:
JmriException
- if no such Follower exists, or some problem found
-
-
Method Detail
-
instantiate
public void instantiate()
Create the underlying objects that implement this
-
getOutputName
public java.lang.String getOutputName()
-
getSensorName
public java.lang.String getSensorName()
-
getInvert
public boolean getInvert()
-
getVetoName
public java.lang.String getVetoName()
-
-