autohit.server.command
Class CommandResponseAtom

java.lang.Object
  extended byautohit.common.channels.Atom
      extended byautohit.server.command.CommandResponseAtom
All Implemented Interfaces:
java.io.Serializable

public class CommandResponseAtom
extends Atom

A command response Atom. It carries a response to a command. * @author Erich P. Gatejen

Version:
1.0 Version History EPG - Initial - 17Sep03
See Also:
Serialized Form

Field Summary
 int id
          Unique ID
 Receipt rr
          Receipt (optional)
static int UNKNOWN_RESPONSE
          Numeric values
 
Fields inherited from class autohit.common.channels.Atom
DEBUG, FLASH, FLOOD, IMMEDIATE, numeric, P_ALL, P_NONE, P_TOP, P1, P2, P3, P4, P5, priority, PRIORITY, ROUTINE, senderID, stamp, thing, type, TYPE_CONTROL, TYPE_EVENT, TYPE_GENERIC, TYPE_INVALID, TYPE_LOG
 
Constructor Summary
CommandResponseAtom()
          Default constructor.
CommandResponseAtom(int n, java.lang.String text, int p, int sourceCommandID, Receipt r)
          Use this constructor, as it is the most convenient
 
Methods inherited from class autohit.common.channels.Atom
stampit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN_RESPONSE

public static final int UNKNOWN_RESPONSE
Numeric values

See Also:
Constant Field Values

id

public int id
Unique ID


rr

public Receipt rr
Receipt (optional)

Constructor Detail

CommandResponseAtom

public CommandResponseAtom()
Default constructor. Default priority of ROUTINE. Null object. Generic type. Timestamped. You may need to set ri to a response injector, though the handler may use a default.


CommandResponseAtom

public CommandResponseAtom(int n,
                           java.lang.String text,
                           int p,
                           int sourceCommandID,
                           Receipt r)
Use this constructor, as it is the most convenient

Parameters:
n - the command numeric
text - text of the response
p - the priority
sourceCommandID - unique id of source command
r - receipt for command. May be null if none was issued.


Test.