|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.implementation.AbstractNamedBean
jmri.implementation.AbstractLight
jmri.jmrix.acela.AcelaLight
public class AcelaLight
AcelaLight.java Implementation of the Light Object for Acela
Based in part on SerialTurnout.java
| 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
String mSystemName
int mBit
static org.slf4j.Logger log
| Constructor Detail |
|---|
public AcelaLight(String systemName)
'systemName' was previously validated in AcelaLightManager
public AcelaLight(String systemName,
String userName)
'systemName' was previously validated in AcelaLightManager
| Method Detail |
|---|
public int getState()
getState in interface LightgetState in interface NamedBeangetState in class AbstractLightpublic void setState(int newState)
setState in interface LightsetState in interface NamedBeansetState in class AbstractLight
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||