|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AgentInstanceIF
The AgentInstanceIF
class represents an agent instance.
Method Summary | |
---|---|
void |
addOrSetObject(java.lang.String list,
ObjectInstanceIF object)
Adds (if not yet existing) or updates object instances in a list. |
ObjectInstanceIF |
createObjectFromListType(java.lang.String objectName,
java.lang.String listName)
Creates object of the type of object specified for the list and adds it to the list. |
BehaviourIF |
getBehaviour()
Gets the behaviour associated with this agent instance. |
ObjectInstanceIF |
getObject(java.lang.String list,
java.lang.String objectName)
Gets an object from a list. |
java.lang.String[] |
getObjectListNames()
Gets the object list names defined for this agent. |
ObjectInstanceIF[] |
getObjects(java.lang.String list)
Gets all objects in a particular list. |
void |
removeAllObjects(java.lang.String list)
Removes all objects from an object list. |
void |
removeObject(java.lang.String list,
ObjectInstanceIF object)
Removes an object from the specified list. |
void |
removeObject(java.lang.String list,
java.lang.String objectName)
Removes an object, given by its name, from the specified list. |
void |
setBehaviour(BehaviourIF behaviour)
Sets the behaviour of this agent. |
Methods inherited from interface gsim.core.objects.ObjectInstanceIF |
---|
copy, destroy, getAttribute, getAttribute, getAttributeListNames, getAttributes, getIntervalAttributeFrom, getIntervalAttributeTo, getName, getNumericalAttribute, getSetAttributeValues, getStringAttribute, inheritsFrom, resolveName, setAttribute, setIntervalAttributeValue, setNumericalAttributeValue, setSetAttributeValues, setStringAttributeValue, toUnit |
Method Detail |
---|
void addOrSetObject(java.lang.String list, ObjectInstanceIF object) throws GSimObjectException
list
- the name of the listobject
- the object
GSimObjectException
ObjectInstanceIF createObjectFromListType(java.lang.String objectName, java.lang.String listName) throws GSimObjectException
objectName
- the name of the object to instanciatelistName
- the name of the list
GSimObjectException
BehaviourIF getBehaviour() throws GSimObjectException
GSimObjectException
ObjectInstanceIF getObject(java.lang.String list, java.lang.String objectName) throws GSimObjectException
list
- the list nameobjectName
- the object name
GSimObjectException
java.lang.String[] getObjectListNames() throws GSimObjectException
GSimObjectException
ObjectInstanceIF[] getObjects(java.lang.String list) throws GSimObjectException
list
- the name of the list
GSimObjectException
void removeAllObjects(java.lang.String list) throws GSimObjectException
list
-
GSimObjectException
void removeObject(java.lang.String list, ObjectInstanceIF object) throws GSimObjectException
list
- the name of the listobject
- the object
GSimObjectException
void removeObject(java.lang.String list, java.lang.String objectName) throws GSimObjectException
list
- the name of the listobjectName
- the name of the object
GSimObjectException
void setBehaviour(BehaviourIF behaviour) throws GSimObjectException
behaviour
- the behaviour
GSimObjectException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |