jmri.jmrit.ussctc
Class Follower

java.lang.Object
  extended by jmri.jmrit.ussctc.Follower
All Implemented Interfaces:
Constants

public class Follower
extends Object
implements Constants

Provide bean-like access to the collection of Logix, Routes, Memories, etc that make up a Follower.

Author:
Bob Jacobsen Copyright (C) 2007

Field Summary
 
Fields inherited from interface jmri.jmrit.ussctc.Constants
commonNamePrefix, commonNameSuffix, nameDivider, pkgPrefix
 
Constructor Summary
Follower(String outputName)
          Create an object to represent an existing Follower.
Follower(String output, String sensor, boolean invert, String veto)
          Create one from scratch
 
Method Summary
 boolean getInvert()
           
 String getOutputName()
           
 String getSensorName()
           
 String getVetoName()
           
 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

Follower

public Follower(String output,
                String sensor,
                boolean invert,
                String veto)
Create one from scratch

Parameters:
output - Output turnout to be driven
sensor - Sensor checking for OS occupancy
veto - veto Sensor, or ""

Follower

public Follower(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 String getOutputName()

getSensorName

public String getSensorName()

getInvert

public boolean getInvert()

getVetoName

public String getVetoName()


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