jmri.jmrit.ussctc
Class OsIndicator
java.lang.Object
jmri.jmrit.ussctc.OsIndicator
- All Implemented Interfaces:
- Constants
public class OsIndicator
- extends Object
- implements 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.
- Author:
- Bob Jacobsen Copyright (C) 2007
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OsIndicator
public OsIndicator(String output,
String osSensor,
String lock)
- Create one from scratch
- Parameters:
output - Output turnout to be drivenosSensor - Sensor checking for OS occupancylock - Lock NamedBean (type to be decided)
OsIndicator
public OsIndicator(String outputName)
throws JmriException
- 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
instantiate
public void instantiate()
- Create the underlying objects that implement this
getOutputName
public String getOutputName()
getOsSensorName
public String getOsSensorName()
getLockName
public String getLockName()
Copyright © 1997 - 2011 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: