jmri.jmrix.ecos
Class EcosSensor

java.lang.Object
  extended by jmri.implementation.AbstractNamedBean
      extended by jmri.implementation.AbstractSensor
          extended by jmri.jmrix.ecos.EcosSensor
All Implemented Interfaces:
Serializable, NamedBean, Sensor

public class EcosSensor
extends AbstractSensor

Implement a Sensor via Ecos communications.

This object doesn't listen to the Ecos communications. This is because it should be the only object that is sending messages for this sensor; more than one Sensor object pointing to a single device is not allowed.

Author:
Bob Jacobsen Copyright (C) 2001, Daniel Boudreau (C) 2007
See Also:
Serialized Form

Field Summary
 
Fields inherited from class jmri.implementation.AbstractSensor
_inverted, _knownState, _rawState, r, sensorDebounceGoingActive, sensorDebounceGoingInActive, thr, useDefaultTimerSettings
 
Fields inherited from class jmri.implementation.AbstractNamedBean
mSystemName, mUserName
 
Fields inherited from interface jmri.Sensor
ACTIVE, INACTIVE
 
Fields inherited from interface jmri.NamedBean
INCONSISTENT, UNKNOWN
 
Constructor Summary
EcosSensor(String systemName)
           
EcosSensor(String systemName, String userName)
           
 
Method Summary
 int getObject()
           
 void requestUpdateFromLayout()
          Request an update from the layout soft/hardware.
 void setOwnState(int state)
          Set our internal state information, and notify bean listeners.
 
Methods inherited from class jmri.implementation.AbstractSensor
getInverted, getKnownState, getRawState, getSensorDebounceGoingActiveTimer, getSensorDebounceGoingInActiveTimer, getState, sensorDebounce, setInverted, setKnownState, setSensorDebounceGoingActiveTimer, setSensorDebounceGoingInActiveTimer, setState, useDefaultTimerSettings, useDefaultTimerSettings
 
Methods inherited from class jmri.implementation.AbstractNamedBean
addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, getComment, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getProperty, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyKeys, getSystemName, getUserName, removePropertyChangeListener, setComment, setProperty, setUserName, updateListenerRef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jmri.Sensor
addPropertyChangeListener, dispose, removePropertyChangeListener
 
Methods inherited from interface jmri.NamedBean
addPropertyChangeListener, getComment, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getProperty, getPropertyChangeListeners, getPropertyKeys, getSystemName, getUserName, setComment, setProperty, setUserName, updateListenerRef
 

Constructor Detail

EcosSensor

public EcosSensor(String systemName,
                  String userName)

EcosSensor

public EcosSensor(String systemName)
Method Detail

requestUpdateFromLayout

public void requestUpdateFromLayout()
Description copied from interface: Sensor
Request an update from the layout soft/hardware. May not even happen, and if it does it will happen later; listen for the result.


getObject

public int getObject()

setOwnState

public void setOwnState(int state)
Description copied from class: AbstractSensor
Set our internal state information, and notify bean listeners.

Overrides:
setOwnState in class AbstractSensor


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