jmri.jmrit.withrottle
Class TurnoutController

java.lang.Object
  extended by jmri.jmrit.withrottle.AbstractController
      extended by jmri.jmrit.withrottle.TurnoutController
All Implemented Interfaces:
PropertyChangeListener, EventListener

public class TurnoutController
extends AbstractController
implements PropertyChangeListener

Author:
Brett Hoffman Copyright (C) 2010

Constructor Summary
TurnoutController()
           
 
Method Summary
 void deregister()
          Deregister as listener of NamedBeans
 void filterList()
           
 void propertyChange(PropertyChangeEvent evt)
           
 void register()
          Register as listener of NamedBeans to be updated of changes.
 void sendList()
          Send list of turnouts Format: PTL]\[SysName}|{UsrName}|{CurrentState]\[SysName}|{UsrName}|{CurrentState States: 1 - UNKNOWN, 2 - CLOSED, 4 - THROWN
 void sendTitles()
          Send Info on turnouts to devices, not specific to any one turnout.
 void sendTurnoutState(Turnout t)
           
 
Methods inherited from class jmri.jmrit.withrottle.AbstractController
addControllerListener, buildList, checkCanBuildList, removeControllerListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TurnoutController

public TurnoutController()
Method Detail

filterList

public void filterList()
Overrides:
filterList in class AbstractController

sendTitles

public void sendTitles()
Send Info on turnouts to devices, not specific to any one turnout. Format: PTT]\[value}|{turnoutKey]\[value}|{closedKey]\[value}|{thrownKey


sendList

public void sendList()
Send list of turnouts Format: PTL]\[SysName}|{UsrName}|{CurrentState]\[SysName}|{UsrName}|{CurrentState States: 1 - UNKNOWN, 2 - CLOSED, 4 - THROWN


propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener
Parameters:
evt -

sendTurnoutState

public void sendTurnoutState(Turnout t)

register

public void register()
Description copied from class: AbstractController
Register as listener of NamedBeans to be updated of changes.


deregister

public void deregister()
Description copied from class: AbstractController
Deregister as listener of NamedBeans



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