org.dxc.api.datatypes
Class CommandData

Object
  extended by org.dxc.api.datatypes.DxcData
      extended by org.dxc.api.datatypes.CommandData

public class CommandData
extends DxcData

Command datatype.


Constructor Summary
CommandData()
          Empty constructor.
CommandData(CommandSet commands)
          Constructor.
CommandData(long timestamp, CommandSet commands)
          Constructor.
CommandData(long timestamp, String commandID, Value value)
          Constructor.
CommandData(String commandID, Value value)
          Constructor.
 
Method Summary
 boolean equals(Object o)
           
 String getCommandID()
          Get first command ID string
 CommandSet getCommands()
          Get commands
 Value getValue()
          Get first command Value
 int hashCode()
           
 OutputStream put(OutputStream os)
          Prints DxcData.
 void setCommands(CommandSet commands)
          Set commands
 
Methods inherited from class org.dxc.api.datatypes.DxcData
getCurrentTime, getSource, getTimeStamp, setSource, setTimeStamp, toString
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandData

public CommandData(long timestamp,
                   CommandSet commands)
Constructor.

Parameters:
timestamp - - message timestamp
commands - - map of command id , value pairs

CommandData

public CommandData(CommandSet commands)
Constructor.

Parameters:
commands - - map of command id, value pairs

CommandData

public CommandData()
Empty constructor.


CommandData

public CommandData(long timestamp,
                   String commandID,
                   Value value)
Constructor.

Parameters:
timestamp - - message timestamp
commandID - - command ID string
value - - the Value of the command

CommandData

public CommandData(String commandID,
                   Value value)
Constructor.

Parameters:
commandID - - command ID string
value - - the Value of the command
Method Detail

getCommandID

public String getCommandID()
Get first command ID string


getValue

public Value getValue()
Get first command Value


getCommands

public CommandSet getCommands()
Get commands


setCommands

public void setCommands(CommandSet commands)
Set commands


put

public OutputStream put(OutputStream os)
Description copied from class: DxcData
Prints DxcData.

Specified by:
put in class DxcData

equals

public boolean equals(Object o)
Overrides:
equals in class DxcData

hashCode

public int hashCode()
Overrides:
hashCode in class DxcData