interagents
Class wrapItem

java.lang.Object
  |
  +--interagents.wrapItem
Direct Known Subclasses:
directWrapItem, labelWrapItem, literalWrapItem, pidginWrapItem

public abstract class wrapItem
extends java.lang.Object


Field Summary
 boolean isnew
          True if object is newly constructed
 interagents.wrapItemBlock wib
           
 
Constructor Summary
wrapItem()
           
 
Method Summary
 void checkMatch(interagents.wrapItem other)
          Throws various exceptions if the passed wrapItem is not the same as the present one
 void flagNew()
           
 void flagOld()
           
 java.lang.String getLabel()
           
 boolean hasLabel()
          Return true if the wrapItem is of textual type.
 boolean isFull()
           
 boolean isNew()
           
 char lowerTypeName()
           
 int number()
          Returns the number
 void setNumber(int n)
           
 char superTypeName()
           
 java.lang.String toString()
          Documents the contents of the wrapItem in the format exemplified by H3, A6!.
 int typeIndex()
          Returns the number of the type of the item as follows: RADIUS=0, POINT=1, LINE=2, CIRCLE=3, LITERAL = 4, or -1 if there is a problem.
 char typeName()
           
 void update(librarian.ppProcessor ppp)
          update using director!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

wib

public interagents.wrapItemBlock wib

isnew

public boolean isnew
True if object is newly constructed

Constructor Detail

wrapItem

public wrapItem()
Method Detail

checkMatch

public void checkMatch(interagents.wrapItem other)
                throws DesignException
Throws various exceptions if the passed wrapItem is not the same as the present one

Parameters:
other - the wrapItem to be compared to the present one
DesignException

isNew

public boolean isNew()

flagNew

public void flagNew()

flagOld

public void flagOld()

typeName

public char typeName()

lowerTypeName

public char lowerTypeName()

superTypeName

public char superTypeName()

isFull

public boolean isFull()

setNumber

public void setNumber(int n)

typeIndex

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


number

public int number()
Returns the number


update

public void update(librarian.ppProcessor ppp)
            throws DesignException,
                   InternalException
update using director!

DesignException
InternalException

hasLabel

public boolean hasLabel()
Return true if the wrapItem is of textual type. This instance returns false, but is overriden in textWrapItem

Returns:
false

getLabel

public java.lang.String getLabel()

toString

public java.lang.String toString()
Documents the contents of the wrapItem in the format exemplified by H3, A6!. The exclamamation point is used with and only with the NEW flag

Overrides:
toString in class java.lang.Object