|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AgentClassIF
The AgentClassIF
is an interface to the frame representing an
agent.
Method Summary | |
---|---|
void |
addOrSetObject(java.lang.String list,
ObjectClassIF object)
Adds the object class if the object class is not yet defined, or updates it otherwise. |
BehaviourIF |
getBehaviour()
Gets the behaviour associated with this agent. |
java.lang.String[] |
getObjectListNames()
Gets the names of all object lists that are defined for this agent. |
ObjectClassIF |
getObjectListType(java.lang.String listName)
Gets the type of object for a particular list. |
ObjectClassIF[] |
getObjects(java.lang.String list)
Gets the default objects in a list. |
boolean |
isDeclaredObject(java.lang.String list,
java.lang.String objectName)
Tests whether an object class was defined in this agent, or whether it was defined somewhere up in the inheritance hierarchy. |
void |
removeObject(java.lang.String list,
ObjectClassIF object)
Removes an object class from a list. |
void |
removeObject(java.lang.String list,
java.lang.String objectName)
Removes an object class, identified by name only, from a list. |
java.lang.Object |
resolveName(java.lang.String path)
Resolves a path into the object it references. |
void |
setBehaviour(BehaviourIF behaviour)
Sets the behaviour of this agent. |
gsim.def.objects.Unit |
toUnit()
This method returns the underlying entity (Frame or Instance). |
Methods inherited from interface gsim.core.objects.ObjectClassIF |
---|
addAttribute, destroy, getAttribute, getAttributeListNames, getAttributes, getDefaultValue, getName, isDeclaredAttribute, setAttribute, setDefaultAttributeValue |
Method Detail |
---|
void addOrSetObject(java.lang.String list, ObjectClassIF object) throws GSimObjectException
list
- the list where to add the object class.object
- the object class to add/set
GSimObjectException
BehaviourIF getBehaviour() throws GSimObjectException
GSimObjectException
java.lang.String[] getObjectListNames() throws GSimObjectException
GSimObjectException
ObjectClassIF getObjectListType(java.lang.String listName) throws GSimObjectException
listName
-
GSimObjectException
ObjectClassIF[] getObjects(java.lang.String list) throws GSimObjectException
list
- the name of the object list
GSimObjectException
boolean isDeclaredObject(java.lang.String list, java.lang.String objectName) throws GSimObjectException
list
- the list nameobjectName
- the object class name
GSimObjectException
void removeObject(java.lang.String list, ObjectClassIF object) throws GSimObjectException
list
- the name of the listobject
- the object class
GSimObjectException
void removeObject(java.lang.String list, java.lang.String objectName) throws GSimObjectException
list
- the name of the listobjectName
- the name of the object class
GSimObjectException
java.lang.Object resolveName(java.lang.String path) throws GSimObjectException
resolveName
in interface ObjectClassIF
path
- the path
List
of attributes if an attribute list was
specified; a List
of ObjectClasses if an
object-list was specified; or null if the path did not specify a
valid object/attribute/list.
GSimObjectException
void setBehaviour(BehaviourIF behaviour) throws GSimObjectException
behaviour
- the behaviour
GSimObjectException
gsim.def.objects.Unit toUnit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |