jmri.jmrit.withrottle
Class TurnoutController

Show UML class diagram
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


Field Summary
(package private) static org.slf4j.Logger log
           
 
Fields inherited from class jmri.jmrit.withrottle.AbstractController
canBuildList, isValid, listeners, sysNameList
 
Constructor Summary
TurnoutController()
           
 
Method Summary
 void deregister()
          Deregister as listener of NamedBeans
 void filterList()
           
(package private)  void handleMessage(String message)
          Break down a message and use it.
 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)
           
(package private)  boolean verifyCreation()
          isValid is used to indicate if the Controller is created.
 
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
 

Field Detail

log

static org.slf4j.Logger log
Constructor Detail

TurnoutController

public TurnoutController()
Method Detail

verifyCreation

boolean verifyCreation()
Description copied from class: AbstractController
isValid is used to indicate if the Controller is created. If false, we can null the controller and reduce overhead.

Specified by:
verifyCreation in class AbstractController
Returns:
isValid

filterList

public void filterList()
Overrides:
filterList in class AbstractController

handleMessage

void handleMessage(String message)
Description copied from class: AbstractController
Break down a message and use it.

Specified by:
handleMessage 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.

Specified by:
register in class AbstractController

deregister

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

Specified by:
deregister in class AbstractController


Copyright © 1997-2013 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