jmri.jmrix.acela
Class AcelaLight

Show UML class diagram
java.lang.Object
  extended by jmri.implementation.AbstractNamedBean
      extended by jmri.implementation.AbstractLight
          extended by jmri.jmrix.acela.AcelaLight
All Implemented Interfaces:
Serializable, Light, NamedBean

public class AcelaLight
extends AbstractLight

AcelaLight.java Implementation of the Light Object for Acela

Based in part on SerialTurnout.java

See Also:
Serialized Form

Field Summary
(package private) static org.slf4j.Logger log
           
(package private)  int mBit
           
(package private)  String mSystemName
          System dependent instance variables
 
Fields inherited from class jmri.implementation.AbstractLight
lightControlList, mActive, mCurrentIntensity, mEnabled, mMaxIntensity, mMinIntensity, mState
 
Fields inherited from class jmri.implementation.AbstractNamedBean
mUserName
 
Fields inherited from interface jmri.Light
FAST_CLOCK_CONTROL, INTERMEDIATE, NO_CONTROL, OFF, ON, SENSOR_CONTROL, TIMED_ON_CONTROL, TRANSITIONING, TRANSITIONINGHIGHER, TRANSITIONINGLOWER, TRANSITIONINGTOFULLOFF, TRANSITIONINGTOFULLON, TURNOUT_STATUS_CONTROL, TWO_SENSOR_CONTROL
 
Fields inherited from interface jmri.NamedBean
INCONSISTENT, UNKNOWN
 
Constructor Summary
AcelaLight(String systemName)
          Create a Light object, with only system name.
AcelaLight(String systemName, String userName)
          Create a Light object, with both system and user names.
 
Method Summary
 int getState()
          Return the current state of this Light
 void setState(int newState)
          Set the current state of this Light This routine requests the hardware to change.
 
Methods inherited from class jmri.implementation.AbstractLight
activateLight, addLightControl, clearLightControls, deactivateLight, doNewState, getCurrentIntensity, getEnabled, getLightControlList, getMaxIntensity, getMinIntensity, getTargetIntensity, getTransitionTime, isIntensityVariable, isTransitionAvailable, isTransitioning, notifyStateChange, notifyTargetIntensityChange, setEnabled, setMaxIntensity, setMinIntensity, setTargetIntensity, setTransitionTime, updateIntensityHigh, updateIntensityIntermediate, updateIntensityLow
 
Methods inherited from class jmri.implementation.AbstractNamedBean
addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, getComment, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getProperty, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyKeys, getSystemName, getUserName, removeProperty, 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.NamedBean
addPropertyChangeListener, addPropertyChangeListener, dispose, getComment, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getProperty, getPropertyChangeListeners, getPropertyKeys, getSystemName, getUserName, removeProperty, removePropertyChangeListener, setComment, setProperty, setUserName, updateListenerRef
 

Field Detail

mSystemName

String mSystemName
System dependent instance variables


mBit

int mBit

log

static org.slf4j.Logger log
Constructor Detail

AcelaLight

public AcelaLight(String systemName)
Create a Light object, with only system name.

'systemName' was previously validated in AcelaLightManager


AcelaLight

public AcelaLight(String systemName,
                  String userName)
Create a Light object, with both system and user names.

'systemName' was previously validated in AcelaLightManager

Method Detail

getState

public int getState()
Return the current state of this Light

Specified by:
getState in interface Light
Specified by:
getState in interface NamedBean
Overrides:
getState in class AbstractLight

setState

public void setState(int newState)
Set the current state of this Light This routine requests the hardware to change. If this is really a change in state of this bit (tested in AcelaNode), a Transmit packet will be sent before this Node is next polled.

Specified by:
setState in interface Light
Specified by:
setState in interface NamedBean
Overrides:
setState in class AbstractLight


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