jmri.jmrix.loconet
Class LnLight

java.lang.Object
  extended by jmri.implementation.AbstractNamedBean
      extended by jmri.implementation.AbstractLight
          extended by jmri.jmrix.loconet.LnLight
All Implemented Interfaces:
Serializable, Light, NamedBean

public class LnLight
extends AbstractLight

LnLight.java Implementation of the Light Object for Loconet

Based in part on SerialLight.java

Author:
Dave Duchamp Copyright (C) 2006
See Also:
Serialized Form

Field Summary
 
Fields inherited from class jmri.implementation.AbstractLight
mActive, mClock, mControlSensor, mControlSensorName, mControlSensorSense, mControlTurnout, mControlTurnoutName, mControlType, mCurrentIntensity, mEnabled, mFastClockOffHour, mFastClockOffMin, mFastClockOnHour, mFastClockOnMin, mLightOnTimerActive, mMaxIntensity, mMinIntensity, mSensorListener, mState, mTimebaseListener, mTimedActive, mTimedControlListener, mTimedControlSensor, mTimedControlTimer, mTimedSensorListener, mTimedSensorName, mTimeOff, mTimeOn, mTimeOnDuration, mTurnoutListener, mTurnoutState
 
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
 
Fields inherited from interface jmri.NamedBean
INCONSISTENT, UNKNOWN
 
Constructor Summary
LnLight(String systemName)
          Create a Light object, with only system name.
LnLight(String systemName, String userName)
          Create a Light object, with both system and user names.
 
Method Summary
protected  void doNewState(int oldState, int newState)
          Set the current state of this Light This routine requests the hardware to change.
 
Methods inherited from class jmri.implementation.AbstractLight
activateLight, deactivateLight, getControlSensorName, getControlSensorSense, getControlTimedOnSensorName, getControlTurnoutName, getControlTurnoutState, getControlType, getCurrentIntensity, getEnabled, getFastClockOffHour, getFastClockOffMin, getFastClockOnHour, getFastClockOnMin, getMaxIntensity, getMinIntensity, getState, getTargetIntensity, getTimedOnDuration, getTransitionTime, isIntensityVariable, isTransitionAvailable, isTransitioning, notifyStateChange, notifyTargetIntensityChange, setControlSensor, setControlSensorSense, setControlTimedOnSensor, setControlTurnout, setControlTurnoutState, setControlType, setEnabled, setFastClockControlSchedule, setMaxIntensity, setMinIntensity, setState, setTargetIntensity, setTimedOnDuration, setTransitionTime, updateClockControlLight, updateIntensityHigh, updateIntensityIntermediate, updateIntensityLow
 
Methods inherited from class jmri.implementation.AbstractNamedBean
addPropertyChangeListener, dispose, firePropertyChange, getComment, getNumPropertyChangeListeners, getSystemName, getUserName, removePropertyChangeListener, setComment, setUserName
 
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, dispose, getComment, getNumPropertyChangeListeners, getSystemName, getUserName, removePropertyChangeListener, setComment, setUserName
 

Constructor Detail

LnLight

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

'systemName' was previously validated in LnLightManager


LnLight

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

'systemName' was previously validated in LnLightManager

Method Detail

doNewState

protected void doNewState(int oldState,
                          int newState)
Set the current state of this Light This routine requests the hardware to change.

Overrides:
doNewState in class AbstractLight


Copyright © 1997 - 2009 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