autohit.common.channels
Class Atom

java.lang.Object
  extended byautohit.common.channels.Atom
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CommandAtom, CommandResponseAtom

public class Atom
extends java.lang.Object
implements java.io.Serializable

An atom

Version:
1.0 Version History EPG - Rewrite - 25Apr03
Author:
Erich P. Gatejen
See Also:
Serialized Form

Field Summary
static int DEBUG
           
static int FLASH
           
static int FLOOD
           
static int IMMEDIATE
           
 int numeric
          Numeric
static int P_ALL
           
static int P_NONE
           
static int P_TOP
           
static int P1
           
static int P2
           
static int P3
           
static int P4
           
static int P5
           
 int priority
          priority - roughly the same as from java.util.logging.Level.
static int PRIORITY
           
static int ROUTINE
           
 java.lang.String senderID
          sender ID - optional
 long stamp
          time stamp
 java.lang.Object thing
          thing
 int type
          Type of atom
static int TYPE_CONTROL
           
static int TYPE_EVENT
           
static int TYPE_GENERIC
           
static int TYPE_INVALID
           
static int TYPE_LOG
           
 
Constructor Summary
Atom()
          Default constructor.
Atom(int t)
          Default constructor.
Atom(int t, int p, int n, java.lang.Object o)
          Constructor.
 
Method Summary
 void stampit()
          Slap a timestamp on it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public int type
Type of atom


TYPE_INVALID

public static final int TYPE_INVALID
See Also:
Constant Field Values

TYPE_GENERIC

public static final int TYPE_GENERIC
See Also:
Constant Field Values

TYPE_EVENT

public static final int TYPE_EVENT
See Also:
Constant Field Values

TYPE_LOG

public static final int TYPE_LOG
See Also:
Constant Field Values

TYPE_CONTROL

public static final int TYPE_CONTROL
See Also:
Constant Field Values

stamp

public long stamp
time stamp


senderID

public java.lang.String senderID
sender ID - optional


thing

public java.lang.Object thing
thing


priority

public int priority
priority - roughly the same as from java.util.logging.Level. Some aliases are provided for convenience.


P_NONE

public static final int P_NONE
See Also:
Constant Field Values

FLASH

public static final int FLASH
See Also:
Constant Field Values

P1

public static final int P1
See Also:
Constant Field Values

IMMEDIATE

public static final int IMMEDIATE
See Also:
Constant Field Values

P2

public static final int P2
See Also:
Constant Field Values

PRIORITY

public static final int PRIORITY
See Also:
Constant Field Values

P3

public static final int P3
See Also:
Constant Field Values

ROUTINE

public static final int ROUTINE
See Also:
Constant Field Values

P4

public static final int P4
See Also:
Constant Field Values

DEBUG

public static final int DEBUG
See Also:
Constant Field Values

P5

public static final int P5
See Also:
Constant Field Values

FLOOD

public static final int FLOOD
See Also:
Constant Field Values

P_ALL

public static final int P_ALL
See Also:
Constant Field Values

P_TOP

public static final int P_TOP
See Also:
Constant Field Values

numeric

public int numeric
Numeric

Constructor Detail

Atom

public Atom()
Default constructor. Default priority of ROUTINE. Null object. Generic type. Timestamped.


Atom

public Atom(int t)
Default constructor. Sets type only.

Parameters:
t - the type

Atom

public Atom(int t,
            int p,
            int n,
            java.lang.Object o)
Constructor. Sets everything but ID and timestamps it.

Parameters:
t - the type
p - the priority
n - the numeric
o - the object
Method Detail

stampit

public void stampit()
Slap a timestamp on it.



Test.