org.indi.objects
Class SwitchVector
java.lang.Object
org.indi.objects.Object<T>
org.indi.objects.Vector<Switch>
org.indi.objects.SwitchVector
- All Implemented Interfaces:
- java.io.Serializable
public class SwitchVector
- extends Vector<Switch>
A indivector hosting indiswitches
- Author:
- Dirk Hünniger
- See Also:
- Serialized Form
Constructor Summary |
SwitchVector(java.lang.String device,
java.lang.String name,
State state,
double timeout,
java.lang.String timestamp,
java.lang.String message)
class constructor |
SwitchVector(java.lang.String device,
java.lang.String name,
java.lang.String timestamp)
class constructor |
SwitchVector(java.lang.String device,
java.lang.String name,
java.lang.String label,
java.lang.String group,
State state,
Permission permission,
double timeout,
java.lang.String timestamp,
SwitchRule switchRule,
java.lang.String message)
class constructor |
SwitchVector(java.lang.String device,
java.lang.String name,
java.lang.String label,
java.lang.String group,
State state,
Permission permission,
SwitchRule switchRule,
double timeout)
class constructor |
Methods inherited from class org.indi.objects.Vector |
add, getChlidren, getDateFormat, getDevice, getEndTag, getGroup, getName, getState, getXML, getXML, hashCode, oEquals, permissionToString, setState, update |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
SwitchVector
public SwitchVector(java.lang.String device,
java.lang.String name,
java.lang.String timestamp)
- class constructor
- Parameters:
device
- the name of the device this SwitchVector is associated
withname
- the name of this SwitchVectortimestamp
- the timestamp to be sent along with this vector
SwitchVector
public SwitchVector(java.lang.String device,
java.lang.String name,
java.lang.String label,
java.lang.String group,
State state,
Permission permission,
double timeout,
java.lang.String timestamp,
SwitchRule switchRule,
java.lang.String message)
- class constructor
- Parameters:
device
- the name of the device this SwitchVector is associated
withname
- the name of this SwitchVectorlabel
- the label to be used for this SwitchVector by a GUIgroup
- the group this vector belongs tostate
- the State this vector is inpermission
- the permissions the user has to change the properties of
this vectortimeout
- the worst case time it takes for a property of this vector
to changetimestamp
- the timestamp to be sent along with this vectorswitchRule
- a rule defining how switches can be On at the same timemessage
- a message to be sent along with this vector
SwitchVector
public SwitchVector(java.lang.String device,
java.lang.String name,
State state,
double timeout,
java.lang.String timestamp,
java.lang.String message)
- class constructor
- Parameters:
device
- the name of the device this SwitchVector is associated
withname
- the name of this SwitchVectorstate
- the State this vector is intimeout
- the worst case time it takes for a property of this vector
to changetimestamp
- the timestamp to be sent along with this vectormessage
- a message to be sent along with this vector
SwitchVector
public SwitchVector(java.lang.String device,
java.lang.String name,
java.lang.String label,
java.lang.String group,
State state,
Permission permission,
SwitchRule switchRule,
double timeout)
- class constructor
- Parameters:
device
- the name of the device this SwitchVector is associated
withname
- the name of this SwitchVectorlabel
- the label to be used for this SwitchVector by a GUIgroup
- the group this vector belongs tostate
- the State this vector is inpermission
- the permissions the user has to change the properties of
this vectortimeout
- the worst case time it takes for a property of this vector
to changeswitchRule
- a rule defining how switches can be On at the same time
getSwitchRule
public SwitchRule getSwitchRule()
- Returns:
- the switchrule of this vector
switchRuleToString
protected static java.lang.String switchRuleToString(SwitchRule rule)
- convert a switch rule to a string as used by the indi protocol
- Parameters:
rule
- the switchrule to be converted
- Returns:
- the string representation of the switchrule
getStartTag
public java.lang.String getStartTag(TransferType type,
java.lang.String message)
- Overrides:
getStartTag
in class Vector<Switch>
getType
protected java.lang.String getType()
- Specified by:
getType
in class Vector<Switch>
Copyright © 2008. All Rights Reserved.