Package jmri.jmrit.ussctc
Class OsIndicator
java.lang.Object
jmri.jmrit.ussctc.OsIndicator
- All Implemented Interfaces:
Constants
Provide bean-like access to the collection of Logix, Routes, Memories, etc
that make up a OsIndicator.
An OS Indicator drives the lamp on the panel for a particular OS. Honors a separate lock/unlocked indication by showing occupied if the associated turnout has been unlocked.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) String(package private) static String(package private) static final String(package private) String(package private) StringFields inherited from interface jmri.jmrit.ussctc.Constants
commonNamePrefix, commonNameSuffix, nameDivider, pkgPrefix -
Constructor Summary
ConstructorsConstructorDescriptionOsIndicator(String outputName) Create an object to represent an existing OsIndicator.OsIndicator(String output, String osSensor, String lock) Create one from scratch -
Method Summary
Modifier and TypeMethodDescriptionvoidCreate the underlying objects that implement this
-
Field Details
-
logixPrefix
-
namePrefix
-
output
-
osSensor
-
lock
-
-
Constructor Details
-
OsIndicator
Create one from scratch- Parameters:
output- User- or System name of output turnout to be drivenosSensor- User- or System name of Sensor determining OS occupancylock- Name of NamedBean used for Locking (type to be decided)
-
OsIndicator
Create an object to represent an existing OsIndicator.- Parameters:
outputName- name of output Turnout that drives the indicator- Throws:
JmriException- if no such OsIndicator exists, or some problem found
-
-
Method Details
-
instantiate
Create the underlying objects that implement this -
getOutputName
-
getOsSensorName
-
getLockName
-