jmri.jmrit.withrottle
Class AbstractController

java.lang.Object
  extended by jmri.jmrit.withrottle.AbstractController
Direct Known Subclasses:
ConsistController, RouteController, TrackPowerController, TurnoutController

public abstract class AbstractController
extends Object

Abstract for controllers that want to recieve or send communications to a connected wi-fi device.

Author:
Brett Hoffman Copyright (C) 2010

Constructor Summary
AbstractController()
           
 
Method Summary
 void addControllerListener(ControllerInterface listener)
          Add a listener to handle: listener.sendPacketToDevice(message);
 void buildList(Manager manager)
          Build list only if there are no controller listeners.
 void checkCanBuildList()
          If no listeners, clear sysNameList pointer and allow list to be re-built *Manager can implement specifics in deregister().
 void filterList()
           
 void removeControllerListener(ControllerInterface listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractController

public AbstractController()
Method Detail

buildList

public void buildList(Manager manager)
Build list only if there are no controller listeners. This way the list is not changed while in use. This should only be called by a subclass of jmri.Manager *Manager can implement specifics in register().

Parameters:
manager -

filterList

public void filterList()

checkCanBuildList

public void checkCanBuildList()
If no listeners, clear sysNameList pointer and allow list to be re-built *Manager can implement specifics in deregister().


addControllerListener

public void addControllerListener(ControllerInterface listener)
Add a listener to handle: listener.sendPacketToDevice(message);

Parameters:
listener -

removeControllerListener

public void removeControllerListener(ControllerInterface listener)


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