org.indi.objects
Class Light

java.lang.Object
  extended by org.indi.objects.Object<Object>
      extended by org.indi.objects.Element
          extended by 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

Field Summary
 
Fields inherited from class org.indi.objects.Element
label, name, value
 
Fields inherited from class org.indi.objects.Object
children, message, transferType
 
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
 
Method Summary
 State getState()
           
protected  java.lang.String getType()
           
static java.lang.String stateToString(State state)
          converts a state object to its string reprentation
 
Methods inherited from class org.indi.objects.Element
getEndTag, getName, getStartTag, getValue, getXML, hashCode, oEquals, setValue
 
Methods inherited from class org.indi.objects.Object
equals, getChildren, getMessage, getTransferType, getXML, setTransferType, treeEquals
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.