jmri.jmrit.ussctc
Class OsIndicator

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface jmri.jmrit.ussctc.Constants
commonNamePrefix, commonNameSuffix, nameDivider, pkgPrefix
 
Constructor Summary
OsIndicator(String outputName)
          Create an object to represent an existing OsIndicator.
OsIndicator(String output, String osSensor, String lock)
          Create one from scratch
 
Method Summary
 String getLockName()
           
 String getOsSensorName()
           
 String getOutputName()
           
 void instantiate()
          Create the underlying objects that implement this
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsIndicator

public OsIndicator(String output,
                   String osSensor,
                   String lock)
Create one from scratch

Parameters:
output - Output turnout to be driven
osSensor - Sensor checking for OS occupancy
lock - 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
Method Detail

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: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads