interagents
Class implicitHolder

java.lang.Object
  |
  +--interagents.implicitHolder

public class implicitHolder
extends java.lang.Object


Constructor Summary
implicitHolder()
           
implicitHolder(int size)
           
 
Method Summary
 void add(interagents.wrapItem item)
          Add an entry.
 void addAt(int i, interagents.wrapItem item)
          Add an entry at a specified index.
 boolean contains(int n)
           
 int count()
           
 int countKnown()
           
 java.util.Enumeration elements()
           
 objects.EuObject get(int i, interagents.EuLab lab)
          Retrieve an implicit entry as an explicit using the lab.
 boolean orderedByNewness(int i, int j)
          Determine whether or not two entries are sorted according to their flags.
 boolean orderedByNumber(int i, int j)
          Determine whether or not two entries are sorted according to their @see EuLab number.
 interagents.wrapItem pick(int i)
           
 void prepend(interagents.wrapItem wi)
           
 java.lang.String provenienceList(interagents.EuLab lab)
           
 interagents.wrapItem remove(int i)
           
 void setProvenience(java.lang.String provenience, interagents.EuLab lab)
           
 void sortByType()
          Sort implicits according to typeindex
 void swap(int i, int j)
          Swap the objects NO THROWING???
 java.lang.String toString()
           
 void trimToSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

implicitHolder

public implicitHolder(int size)

implicitHolder

public implicitHolder()
Method Detail

pick

public interagents.wrapItem pick(int i)
Parameters:
i -
Returns:
The implicit at i

count

public int count()
Returns:
The number of stored implicits

trimToSize

public void trimToSize()

countKnown

public int countKnown()

contains

public boolean contains(int n)

remove

public interagents.wrapItem remove(int i)
Returns:
wrapItem at index i, subsequently removed

sortByType

public void sortByType()
Sort implicits according to typeindex


swap

public void swap(int i,
                 int j)
Swap the objects NO THROWING???

Parameters:
i -
j -

add

public void add(interagents.wrapItem item)
Add an entry.

Parameters:
item - the entry

addAt

public void addAt(int i,
                  interagents.wrapItem item)
Add an entry at a specified index.

Parameters:
i - the index
item - the entry

orderedByNumber

public boolean orderedByNumber(int i,
                               int j)
Determine whether or not two entries are sorted according to their @see EuLab number.

Parameters:
i - the number of the first entry
j - the number of the second entry

orderedByNewness

public boolean orderedByNewness(int i,
                                int j)
                         throws InternalException
Determine whether or not two entries are sorted according to their flags.

Parameters:
i - the number of the first entry
j - the number of the second entry
Throws:
InternalException - if wrong phase

get

public objects.EuObject get(int i,
                            interagents.EuLab lab)
                     throws DesignException
Retrieve an implicit entry as an explicit using the lab.

Parameters:
i - the number of the entry
lab - the lab
Throws:
DesignException - if type discrepancy

prepend

public void prepend(interagents.wrapItem wi)

elements

public java.util.Enumeration elements()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setProvenience

public void setProvenience(java.lang.String provenience,
                           interagents.EuLab lab)
                    throws DesignException
DesignException

provenienceList

public java.lang.String provenienceList(interagents.EuLab lab)