jmri.jmrix.jmriclient
Class JMRIClientLight

java.lang.Object
  extended by jmri.implementation.AbstractNamedBean
      extended by jmri.implementation.AbstractLight
          extended by jmri.jmrix.jmriclient.JMRIClientLight
All Implemented Interfaces:
Serializable, EventListener, AbstractMRListener, JMRIClientListener, Light, NamedBean

public class JMRIClientLight
extends AbstractLight
implements JMRIClientListener

JMRIClient implementation of the Light interface.

Description: extend jmri.AbstractLight for JMRIClient layouts

Author:
Bob Jacobsen Copyright (C) 2001, 2008, Paul Bender Copyright (C) 2010
See Also:
Serialized Form

Field Summary
 
Fields inherited from class jmri.implementation.AbstractLight
lightControlList, mActive, mCurrentIntensity, mEnabled, mMaxIntensity, mMinIntensity, mState
 
Fields inherited from class jmri.implementation.AbstractNamedBean
mSystemName, 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
JMRIClientLight(int number, JMRIClientSystemConnectionMemo memo)
          JMRIClient lights use the light number on the remote host.
 
Method Summary
 void doNewState(int oldState, int s)
          Implement the specific change of state needed by hardware
 int getNumber()
           
 void message(JMRIClientMessage m)
           
 void reply(JMRIClientReply m)
           
protected  void requestUpdateFromLayout()
           
protected  void sendMessage(boolean on)
           
 
Methods inherited from class jmri.implementation.AbstractLight
activateLight, addLightControl, clearLightControls, deactivateLight, getCurrentIntensity, getEnabled, getLightControlList, getMaxIntensity, getMinIntensity, getState, getTargetIntensity, getTransitionTime, isIntensityVariable, isTransitionAvailable, isTransitioning, notifyStateChange, notifyTargetIntensityChange, setEnabled, setMaxIntensity, setMinIntensity, setState, 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, 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, removePropertyChangeListener, setComment, setProperty, setUserName, updateListenerRef
 

Constructor Detail

JMRIClientLight

public JMRIClientLight(int number,
                       JMRIClientSystemConnectionMemo memo)
JMRIClient lights use the light number on the remote host.

Method Detail

getNumber

public int getNumber()

requestUpdateFromLayout

protected void requestUpdateFromLayout()

doNewState

public void doNewState(int oldState,
                       int s)
Description copied from class: AbstractLight
Implement the specific change of state needed by hardware

Overrides:
doNewState in class AbstractLight

sendMessage

protected void sendMessage(boolean on)

reply

public void reply(JMRIClientReply m)
Specified by:
reply in interface JMRIClientListener

message

public void message(JMRIClientMessage m)
Specified by:
message in interface JMRIClientListener


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