org.moyoman.debug
Class DebugType

java.lang.Object
  |
  +--org.moyoman.debug.DebugType

public class DebugType
extends Object

This class represents the different types of Debug objects.


Field Summary
static short AGGREGATE
          The AGGREGATE Debug object.
static short CONTINUOUS
          The CONTINUOUS Debug object.
private  short debugType
          The value of this debug type object.
static String[] descriptions
           
static short DISCRETE
          The DISCRETE Debug object.
static short FOREST
          The FOREST Debug object.
static short GROUPRATING
          The GROUPRATING Debug object.
static short LEGEND
          The LEGEND Debug object.
static short SOI
          The Sphere of Influence Debug object.
 
Constructor Summary
DebugType(short type)
          Create a DebugType object.
 
Method Summary
 boolean equals(Object o)
          Determine if the object is equal to this one.
 short get()
          Return the type of Debug object.
 int hashCode()
          Compute a hash code for this object.
static boolean isSupported(DebugType[] arr, short dt)
          Determine if the dt parameter is in the array of debug type objects.
 String toString()
          Return a descriptive String of the type of Debug object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CONTINUOUS

public static final short CONTINUOUS
The CONTINUOUS Debug object.

See Also:
Constant Field Values

DISCRETE

public static final short DISCRETE
The DISCRETE Debug object.

See Also:
Constant Field Values

AGGREGATE

public static final short AGGREGATE
The AGGREGATE Debug object.

See Also:
Constant Field Values

SOI

public static final short SOI
The Sphere of Influence Debug object.

See Also:
Constant Field Values

LEGEND

public static final short LEGEND
The LEGEND Debug object.

See Also:
Constant Field Values

GROUPRATING

public static final short GROUPRATING
The GROUPRATING Debug object.

See Also:
Constant Field Values

FOREST

public static final short FOREST
The FOREST Debug object.

See Also:
Constant Field Values

descriptions

public static final String[] descriptions

debugType

private short debugType
The value of this debug type object.

Constructor Detail

DebugType

public DebugType(short type)
Create a DebugType object.

Method Detail

get

public short get()
Return the type of Debug object.

Returns:
The type of Debug object.

toString

public String toString()
Return a descriptive String of the type of Debug object.

Overrides:
toString in class Object
Returns:
The type of Debug object.

isSupported

public static boolean isSupported(DebugType[] arr,
                                  short dt)
Determine if the dt parameter is in the array of debug type objects.

Parameters:
arr - - An array of DebugType objects.
dt - - A value which corresponds to one of the DebugType

equals

public boolean equals(Object o)
Determine if the object is equal to this one.

Overrides:
equals in class Object
Parameters:
o - The object being compared.
Returns:
true if they are the same, or false.

hashCode

public int hashCode()
Compute a hash code for this object.

Overrides:
hashCode in class Object
Returns:
An int which is the hash code.