jmri.jmrix.can.cbus
Class CbusSensorManager

java.lang.Object
  extended by jmri.managers.AbstractManager
      extended by jmri.managers.AbstractSensorManager
          extended by jmri.jmrix.can.cbus.CbusSensorManager
All Implemented Interfaces:
PropertyChangeListener, EventListener, AbstractMRListener, CanListener, Manager, SensorManager

public class CbusSensorManager
extends AbstractSensorManager
implements CanListener

Manage the CBUS-specific Sensor implementation. System names are "MSnnn", where nnn is the sensor number without padding.

Author:
Bob Jacobsen Copyright (C) 2008

Field Summary
 
Fields inherited from class jmri.managers.AbstractSensorManager
sensorDebounceGoingActive, sensorDebounceGoingInActive
 
Fields inherited from class jmri.managers.AbstractManager
_tsys, _tuser
 
Fields inherited from interface jmri.Manager
AUDIO, BLOCKBOSS, BLOCKS, CONDITIONALS, IDTAGS, LAYOUTBLOCKS, LIGHTS, LOGIXS, MEMORIES, OBLOCKS, PANELFILES, REPORTERS, ROUTES, SECTIONS, SENSORGROUPS, SENSORS, SIGNALGROUPS, SIGNALHEADS, SIGNALMASTLOGICS, SIGNALMASTS, TIMEBASE, TRANSITS, TURNOUTS, WARRANTS
 
Constructor Summary
CbusSensorManager()
           
 
Method Summary
 Sensor createNewSensor(String systemName, String userName)
          Internal method to invoke the factory, after all the logic for returning an existing method has been invoked.
 void dispose()
          Free resources when no longer used.
 String getSystemPrefix()
          Provides access to the system prefix string.
static CbusSensorManager instance()
           
 void message(CanMessage l)
           
 void reply(CanReply l)
           
 void updateAll()
          No mechanism currently exists to request status updates from all layout sensors.
 
Methods inherited from class jmri.managers.AbstractSensorManager
allowMultipleAdditions, createSystemName, getBySystemName, getByUserName, getDefaultSensorDebounceGoingActive, getDefaultSensorDebounceGoingInActive, getInstanceBySystemName, getNextValidAddress, getSensor, getXMLOrder, newSensor, normalizeSystemName, provideSensor, setDefaultSensorDebounceGoingActive, setDefaultSensorDebounceGoingInActive, typeLetter
 
Methods inherited from class jmri.managers.AbstractManager
addPropertyChangeListener, deregister, firePropertyChange, getBeanBySystemName, getInstanceByUserName, getSystemNameArray, getSystemNameList, makeSystemName, propertyChange, register, registerSelf, removePropertyChangeListener, systemLetter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jmri.SensorManager
getSystemNameList
 
Methods inherited from interface jmri.Manager
addPropertyChangeListener, deregister, getBeanBySystemName, getSystemNameArray, makeSystemName, register, removePropertyChangeListener, systemLetter
 

Constructor Detail

CbusSensorManager

public CbusSensorManager()
Method Detail

getSystemPrefix

public String getSystemPrefix()
Description copied from interface: Manager
Provides access to the system prefix string. This was previously called the "System letter"

Specified by:
getSystemPrefix in interface Manager

instance

public static CbusSensorManager instance()

dispose

public void dispose()
Description copied from interface: Manager
Free resources when no longer used. Specifically, remove all references to and from this object, so it can be garbage-collected.

Specified by:
dispose in interface Manager
Specified by:
dispose in interface SensorManager
Overrides:
dispose in class AbstractManager

createNewSensor

public Sensor createNewSensor(String systemName,
                              String userName)
Description copied from class: AbstractSensorManager
Internal method to invoke the factory, after all the logic for returning an existing method has been invoked.

Specified by:
createNewSensor in class AbstractSensorManager
Returns:
new null

reply

public void reply(CanReply l)
Specified by:
reply in interface CanListener

message

public void message(CanMessage l)
Specified by:
message in interface CanListener

updateAll

public void updateAll()
No mechanism currently exists to request status updates from all layout sensors.

Specified by:
updateAll in interface SensorManager
Overrides:
updateAll in class AbstractSensorManager


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