|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jade.content.abs.AbsObjectImpl | +--jade.content.abs.AbsPrimitiveSlotsHolder | +--jade.content.abs.AbsConcept | +--jade.content.abs.AbsAggregate
Constructor Summary | |
AbsAggregate(java.lang.String typeName)
Construct an Abstract descriptor to hold an aggregate of the proper type (i.e. |
Method Summary | |
void |
add(AbsTerm element)
Adds a new element (that must be a term) to this aggregate. |
void |
clear()
Clear all the elements in this aggregate. |
boolean |
contains(AbsTerm element)
Test if a given term is contained in this aggregate. |
protected void |
dump(int indent,
java.io.PrintStream ps)
|
AbsTerm |
get(int i)
Retrieves the i -th element in this aggregate. |
AbsObject |
getAbsObject(java.lang.String name)
Overrides this method to check that name is of the form Codec.UNNAMEDPERFIX+index |
int |
getCount()
Overrides method in superclass |
java.lang.String[] |
getNames()
Overrides method in superclass |
int |
indexOf(AbsTerm element)
Returns the position of an element within this aggregate. |
boolean |
isEmpty()
Test if the aggregate is empty. |
boolean |
isGrounded()
Tests if this AbsAggregate is grounded, i.e., if no one of its elements is associated with a variable |
Iterator |
iterator()
|
boolean |
remove(AbsTerm element)
Removes an element from this aggregate. |
AbsTerm |
remove(int index)
Removes the element at the given position from this aggregate. |
void |
set(java.lang.String name,
AbsTerm value)
Overrides this method to check that name is of the form Codec.UNNAMEDPERFIX+index |
int |
size()
Retrieves the number of elements in this aggregate. |
AbsTerm[] |
toArray()
Retrieve all elements in this aggregate in the form of an array. |
java.lang.String |
toString()
|
Methods inherited from class jade.content.abs.AbsConcept |
getAbsTerm,
getJavaClass |
Methods inherited from class jade.content.abs.AbsPrimitiveSlotsHolder |
getBoolean,
getByteSequence,
getDate,
getDouble,
getFloat,
getInteger,
getLong,
getString,
set,
set,
set,
set,
set,
set,
set,
set |
Methods inherited from class jade.content.abs.AbsObjectImpl |
equals,
getTypeName,
hashCode,
set |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public AbsAggregate(java.lang.String typeName)
typeName
- The name of the type of the aggregate held by
this abstract descriptor.Method Detail |
public void add(AbsTerm element)
element
- The element to add.public int size()
public AbsTerm get(int i)
i
-th element in this aggregate.i
- The index of the element to retrieve.public Iterator iterator()
Iterator
over the elements of this
aggregate.public void clear()
public boolean contains(AbsTerm element)
true
if the given term is contained
in this aggregate.public int indexOf(AbsTerm element)
public AbsTerm remove(int index)
public boolean remove(AbsTerm element)
public boolean isEmpty()
true
if this aggregate does not contain
any element.public AbsTerm[] toArray()
public void set(java.lang.String name, AbsTerm value)
protected void dump(int indent, java.io.PrintStream ps)
public AbsObject getAbsObject(java.lang.String name)
name
- The name of the attribute.public java.lang.String[] getNames()
public boolean isGrounded()
true
if the object is grounded.public int getCount()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |