|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface implements the RELATE Role.
A Role object brings additional capabilities and responsibilities to a host Agent. This can include, but is not limited to, sensors, goals (with their associated Rules), and methods to act upon itself and its environment.
Method Summary | |
void |
addAction(Action pAction)
Adds the indicated action to the actionList |
void |
addNewGoal(Goal pGoal)
Adds the passed in Goal to the goalList. |
void |
addSensor(Sensor pSensor)
Adds the indicated sensor to the sensorList |
java.util.Vector |
getActionListVec()
Getter for actionList. |
java.util.Vector |
getGoalListVec()
Getter for goalList |
java.lang.String |
getRoleName()
Gets the role name |
java.util.Vector |
getSensorListVec()
Getter for sensorList |
boolean |
removeAction(Action pAction)
Removes the indicated action from the actionList |
boolean |
removeGoal(Goal pGoal)
Removes the Goal from the goalList. |
boolean |
removeSensor(Sensor pSensor)
Removes the indicated sensor from the sensorList |
void |
setActionList(java.util.Vector pActionList)
Setter for actionList. |
void |
setRoleName(java.lang.String pRoleName)
Sets the role name of the role object, this should be the exact class name of the role. |
void |
setSensorList(java.util.Vector pSensorList)
Setter for sensorList |
Method Detail |
public void addNewGoal(Goal pGoal)
pGoal
- public boolean removeGoal(Goal pGoal)
pGoal
-
public java.util.Vector getGoalListVec()
public java.util.Vector getSensorListVec()
public void setSensorList(java.util.Vector pSensorList)
pSensorList
- public boolean removeSensor(Sensor pSensor)
pSensor
- An integer representing the sensor to be removed
public void addSensor(Sensor pSensor)
pSensor
- An integer representing the sensor to be addedpublic java.util.Vector getActionListVec()
public void setActionList(java.util.Vector pActionList)
pActionList
- public boolean removeAction(Action pAction)
pAction
- The action to be removed
public void addAction(Action pAction)
pAction
- The action to be addedpublic void setRoleName(java.lang.String pRoleName)
pRoleName
- The role namepublic java.lang.String getRoleName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |