interagents
Class wrapItemBlock

java.lang.Object
  |
  +--interagents.wrapItemBlock
All Implemented Interfaces:
java.lang.Cloneable

public class wrapItemBlock
extends java.lang.Object
implements java.lang.Cloneable


Field Summary
 int number
           
static java.lang.String supertypecodes
           
static java.lang.String typecodes
           
 
Constructor Summary
wrapItemBlock()
          Constructor for literals
wrapItemBlock(int number, char type)
           
wrapItemBlock(int number, int typei)
           
 
Method Summary
 interagents.wrapItemBlock cloneAs()
           
 boolean isFull()
           
static boolean isTypeName(char type)
          Static method for looking up typecodes
 int superTypeIndex()
          Returns the number of the type of the item as follows: RADIUS=0, POINT=1, LINE=2, CIRCLE=3, or -1 if there is a problem.
 char superTypeName()
          Returns the number of the type of the item as follows: RADIUS=0, POINT=1, LINE=2, CIRCLE=3, or -1 if there is a problem.
 java.lang.String toString()
          Documents the contents of the wrapItemBlock in the format exemplified by H3, A6.
 int typeIndex()
           
static int typeIndex(char type)
          Static method for looking up typecodes
 char typeName()
          Gives object subtype as a char or a '?'
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

number

public int number

typecodes

public static final java.lang.String typecodes
See Also:
Constant Field Values

supertypecodes

public static final java.lang.String supertypecodes
See Also:
Constant Field Values
Constructor Detail

wrapItemBlock

public wrapItemBlock(int number,
                     char type)
              throws DesignException
Parameters:
type - one of the letters R, P, L, H, I, C, A; possibly lower case

wrapItemBlock

public wrapItemBlock(int number,
                     int typei)

wrapItemBlock

public wrapItemBlock()
Constructor for literals

Method Detail

typeIndex

public static int typeIndex(char type)
Static method for looking up typecodes

Parameters:
type - the character to be looked up
Returns:
an index as 0 for R, 1 for P, ..., or -1 if not reckognized

typeIndex

public int typeIndex()

isTypeName

public static boolean isTypeName(char type)
Static method for looking up typecodes

Parameters:
type - the character to be looked up
Returns:
true if type reckognized as typecode

typeName

public char typeName()
Gives object subtype as a char or a '?' if unknown


superTypeIndex

public int superTypeIndex()
Returns the number of the type of the item as follows: RADIUS=0, POINT=1, LINE=2, CIRCLE=3, or -1 if there is a problem.


superTypeName

public char superTypeName()
Returns the number of the type of the item as follows: RADIUS=0, POINT=1, LINE=2, CIRCLE=3, or -1 if there is a problem.


isFull

public boolean isFull()

toString

public java.lang.String toString()
Documents the contents of the wrapItemBlock in the format exemplified by H3, A6.

Overrides:
toString in class java.lang.Object

cloneAs

public interagents.wrapItemBlock cloneAs()