Overview  Package   Class  Tree  Index 

be.lassi.lanbox.commands.layer
Class LayerGetStatus

java.lang.Object
  extended by be.lassi.lanbox.commands.Command
      extended by be.lassi.lanbox.commands.LanboxCommand
          extended by be.lassi.lanbox.commands.layer.LayerCommand
              extended by be.lassi.lanbox.commands.layer.LayerGetStatus

public class LayerGetStatus
extends LayerCommand

Lanbox command to get the status of a layer.


Field Summary
static java.lang.String ID
          Lanbox command identifier.
 
Constructor Summary
LayerGetStatus(byte[] request)
          Constructs command from request buffer.
LayerGetStatus(int layerNumber, LayerStatus status)
          Constructs the command.
 
Method Summary
 boolean equals(java.lang.Object object)
          
 LayerStatus getStatus()
          Gets the layer status.
 int hashCode()
          
 void processResponse(byte[] bytes)
          Processes given reponse buffer.
 
Methods inherited from class be.lassi.lanbox.commands.layer.LayerCommand
getLayerNumber, toString
 
Methods inherited from class be.lassi.lanbox.commands.LanboxCommand
get, getBoolean, getId, getInt, getInt4, getRequest, getRequestString, getResponse, set, set2, set2, set4
 
Methods inherited from class be.lassi.lanbox.commands.Command
add, appendCommand, appendCommandDetail, appendResponse, getCommandString, notifyListeners
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
Lanbox command identifier.

See Also:
Constant Field Values
Constructor Detail

LayerGetStatus

public LayerGetStatus(byte[] request)
Constructs command from request buffer.

Parameters:
request - the lanbox request buffer

LayerGetStatus

public LayerGetStatus(int layerNumber,
                      LayerStatus status)
Constructs the command.

Parameters:
layerNumber - the layer number
status - the layer status that will be updated by this command
Method Detail

equals

public boolean equals(java.lang.Object object)

Overrides:
equals in class LayerCommand

getStatus

public LayerStatus getStatus()
Gets the layer status.

Returns:
the layer status

hashCode

public int hashCode()

Overrides:
hashCode in class LayerCommand

processResponse

public void processResponse(byte[] bytes)
Processes given reponse buffer.

Overrides:
processResponse in class LanboxCommand
Parameters:
bytes - the response buffer to be processed

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2