|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmil.navy.nps.relate.Thing
mil.navy.nps.relate.Agent
demo.helicopter.CTFAgent
CTFAgent extends the RELATE Agent. This is the core Entity that uses its assigned roles/goals/rules to determine: movement and shooting. This agent can take the roles of squad member, and squad leader. Each one of these roles comes complete with the goal/rule components.
Field Summary |
Fields inherited from class mil.navy.nps.relate.Agent |
relationshipManager |
Fields inherited from class mil.navy.nps.relate.Thing |
entityID, entityName |
Constructor Summary | |
CTFAgent(long pID,
java.lang.String pName)
Constructor for this Agent |
Method Summary | |
void |
assignCredit()
Assigns credit to current goal set. |
void |
drawSelf()
drawSelf() can be used by the developer to draw the geometry of the entity if there is to be a visual representation of the entity in the simulation. |
java.util.Vector |
getProtocolVector()
|
SensedEnvironment |
getSensedEnvironment()
Setter and getter group |
boolean |
inRelationship()
Utility method thatChecks to see if the agent is currently in a squad relationship. |
void |
setSensedEnvironment(SensedEnvironment pSEnv)
Sets the agents SensedEnvironment to the passed in object |
void |
step()
Updates this Object based on currently assigned private data members |
Methods inherited from class mil.navy.nps.relate.Agent |
addRelationshipName, addRelationshipNames, addRole, checkForRelationships, getActiveGoal, getActiveRole, getAgentID, getAgentName, getGoalList, getPastActiveGoal, getPersonality, getRelationshipTable, getRoleVector, getSensorList, removeRelationshipName, removeRole, setActiveGoal, setAgentID, setAgentName, setPastActiveGoal, setPersonality, setSensorList |
Methods inherited from class mil.navy.nps.relate.Thing |
getEntityID, getEntityName, setEntityID, setEntityName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CTFAgent(long pID, java.lang.String pName)
Method Detail |
public boolean inRelationship()
public void step()
step
in class Thing
public SensedEnvironment getSensedEnvironment()
getSensedEnvironment
in class Agent
public java.util.Vector getProtocolVector()
public void setSensedEnvironment(SensedEnvironment pSEnv)
Agent
setSensedEnvironment
in class Agent
public void assignCredit()
Agent
assignCredit
in class Agent
public void drawSelf()
Thing
drawSelf
in class Thing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |