jmri.jmrit.withrottle
Class RouteController

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

public class RouteController
extends AbstractController
implements PropertyChangeListener

Author:
Brett Hoffman Copyright (C) 2010

Field Summary
protected  NamedBeanHandleManager nbhm
           
 
Constructor Summary
RouteController()
           
 
Method Summary
 void deregister()
          Remove this from each managed route's aligned sensor.
 void filterList()
           
 void propertyChange(PropertyChangeEvent evt)
          This is on the aligned sensor, not the route itself.
 void register()
          Register this as a listener of each managed route's aligned sensor
 void sendList()
          Send list of routes Format: PRL]\[SysName}|{UsrName}|{CurrentState]\[SysName}|{UsrName}|{CurrentState States: 1 - UNKNOWN, 2 - ACTIVE, 4 - INACTIVE (based on turnoutsAligned sensor, if used)
 void sendTitles()
          Send Info on routes to devices, not specific to any one route.
 
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

nbhm

protected NamedBeanHandleManager nbhm
Constructor Detail

RouteController

public RouteController()
Method Detail

filterList

public void filterList()
Overrides:
filterList in class AbstractController

sendTitles

public void sendTitles()
Send Info on routes to devices, not specific to any one route. Format: PRT]\[value}|{routeKey]\[value}|{ActiveKey]\[value}|{InactiveKey


sendList

public void sendList()
Send list of routes Format: PRL]\[SysName}|{UsrName}|{CurrentState]\[SysName}|{UsrName}|{CurrentState States: 1 - UNKNOWN, 2 - ACTIVE, 4 - INACTIVE (based on turnoutsAligned sensor, if used)


propertyChange

public void propertyChange(PropertyChangeEvent evt)
This is on the aligned sensor, not the route itself.

Specified by:
propertyChange in interface PropertyChangeListener
Parameters:
evt -

register

public void register()
Register this as a listener of each managed route's aligned sensor


deregister

public void deregister()
Remove this from each managed route's aligned sensor.



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