Overview  Package   Class  Tree  Index 

be.lassi.lanbox.cuesteps
Class WaitSwitch

java.lang.Object
  extended by be.lassi.lanbox.cuesteps.CueStep
      extended by be.lassi.lanbox.cuesteps.WaitSwitch

public class WaitSwitch
extends CueStep

Cue step to hold until the switch on the Lanbox-LC becomes positive or negative. Note that this type of cue step is relevant for Lanbox-LC only.


Field Summary
static int ID
          Cue step type identifier.
 
Constructor Summary
WaitSwitch()
          Constructs new cue step.
WaitSwitch(boolean positive)
          Constructs new cue step.
WaitSwitch(byte[] bytes)
          Constructs a new cue step.
 
Method Summary
 void append(java.lang.StringBuilder b)
          Appends description of this cue step to given buffer.
 boolean equals(java.lang.Object object)
          
 byte[] getBytes()
          Gets the raw buffer representation of the cue step (for use in messages that are exchanged with the lanbox).
 int getId()
          Gets the identifier of the cue step type.
 int hashCode()
          
 boolean isPositive()
          Indicates whether to wait for a positive pulse or a negative pulse.
 void setPositive(boolean positive)
          Sets the indicator that shows whether to wait for a positive pulse or a negative pulse.
 java.lang.String toString()
          
 
Methods inherited from class be.lassi.lanbox.cuesteps.CueStep
getString, isWaitOnStep, setWaitOnStep
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final int ID
Cue step type identifier.

See Also:
Constant Field Values
Constructor Detail

WaitSwitch

public WaitSwitch()
Constructs new cue step.


WaitSwitch

public WaitSwitch(boolean positive)
Constructs new cue step.

Parameters:
positive - true if wait for positive pulse, false for negative pulse

WaitSwitch

public WaitSwitch(byte[] bytes)
Constructs a new cue step.

Parameters:
bytes - the raw cue step buffer
Method Detail

append

public void append(java.lang.StringBuilder b)
Appends description of this cue step to given buffer.

Overrides:
append in class CueStep
Parameters:
b - the string buffer to append to

equals

public boolean equals(java.lang.Object object)

Overrides:
equals in class CueStep

getBytes

public byte[] getBytes()
Gets the raw buffer representation of the cue step (for use in messages that are exchanged with the lanbox).

Overrides:
getBytes in class CueStep
Returns:
the raw buffer

getId

public int getId()
Gets the identifier of the cue step type.

Specified by:
getId in class CueStep
Returns:
the cue step type

hashCode

public int hashCode()

Overrides:
hashCode in class CueStep

isPositive

public boolean isPositive()
Indicates whether to wait for a positive pulse or a negative pulse.

Returns:
true if we should wait for a positive pulse

setPositive

public void setPositive(boolean positive)
Sets the indicator that shows whether to wait for a positive pulse or a negative pulse.

Parameters:
positive - the pulse attribute to set

toString

public java.lang.String toString()

Overrides:
toString in class CueStep

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2