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) booleaninvert(package private) static java.lang.StringnamePrefix(package private) java.lang.Stringoutput(package private) static java.lang.StringroutePrefix(package private) java.lang.Stringsensor(package private) java.lang.Stringveto-
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 booleangetInvert()java.lang.StringgetOutputName()java.lang.StringgetSensorName()java.lang.StringgetVetoName()voidinstantiate()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()
-
-