org.indi.objects
Class Light
java.lang.Object
org.indi.objects.Object<Object>
org.indi.objects.Element
org.indi.objects.Light
- All Implemented Interfaces:
- java.io.Serializable
public class Light
- extends Element
An implementation of the light element as defined by the indi standard
- Author:
- Dirk Hünniger
- See Also:
- Serialized Form
Constructor Summary |
Light(java.lang.String name,
java.lang.String value)
class constuctor |
Light(java.lang.String name,
java.lang.String label,
State state)
class constuctor |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Light
public Light(java.lang.String name,
java.lang.String label,
State state)
- class constuctor
- Parameters:
name
- the name of the light (unique identyfier)label
- the label of the light (to be used by the GUI)state
- the state the light is initially in
Light
public Light(java.lang.String name,
java.lang.String value)
- class constuctor
- Parameters:
name
- the name of the light (unique identyfier)label
- the label of the light (to be used by the GUI)
stateToString
public static java.lang.String stateToString(State state)
- converts a state object to its string reprentation
- Parameters:
state
- the light to be converted
- Returns:
- the string representation of the light supplyed
getState
public State getState()
- Returns:
- the state of the light
getType
protected java.lang.String getType()
- Specified by:
getType
in class Element
- Returns:
- the type of the indi element
Copyright © 2008. All Rights Reserved.