|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdemo.helicopter.RoleSquadLeader
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.
Constructor Summary | |
RoleSquadLeader()
Default constructor |
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)
Interface Requirements |
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 |
java.lang.String |
toString()
Getter and setter group |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RoleSquadLeader()
Method Detail |
public void addNewGoal(Goal pGoal)
addNewGoal
in interface Role
pGoal
- public boolean removeGoal(Goal pGoal)
removeGoal
in interface Role
pGoal
-
public boolean removeSensor(Sensor pSensor)
Role
removeSensor
in interface Role
pSensor
- An integer representing the sensor to be removed
public void addSensor(Sensor pSensor)
Role
addSensor
in interface Role
pSensor
- An integer representing the sensor to be addedpublic boolean removeAction(Action pAction)
Role
removeAction
in interface Role
pAction
- The action to be removed
public void addAction(Action pAction)
Role
addAction
in interface Role
pAction
- The action to be addedpublic java.lang.String toString()
public java.util.Vector getGoalListVec()
Role
getGoalListVec
in interface Role
public java.util.Vector getSensorListVec()
Role
getSensorListVec
in interface Role
public void setSensorList(java.util.Vector pSensorList)
Role
setSensorList
in interface Role
pSensorList
- public void setRoleName(java.lang.String pRoleName)
Role
setRoleName
in interface Role
pRoleName
- The role namepublic java.lang.String getRoleName()
Role
getRoleName
in interface Role
public java.util.Vector getActionListVec()
Role
getActionListVec
in interface Role
public void setActionList(java.util.Vector pActionList)
Role
setActionList
in interface Role
pActionList
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |