|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdemo.helicopter.GoalCoordinate
GoalCoordinate implements the Goal interface in the RELATE architecture. This goal directs the Agent to balance the forces currently in the squad.
| Constructor Summary | |
GoalCoordinate()
Constructor for the Coordinate goal |
|
| Method Summary | |
void |
addRule(Rule pRule)
Adds the passed in Rule to the ruleList Vector. |
void |
assignCredit(SensedEnvironment pPE)
Assigns credit to itself (i.e. |
Rule |
getActiveRule()
Gets the Goal active rule |
java.lang.String |
getGoalName()
Gets the Goal name |
int |
getGoalType()
Gets the Goal type |
Rule |
getPastActiveRule()
Gets the Goal past active rule |
java.util.Vector |
getRuleList()
Returns the ruleList Vector. |
boolean |
removeRule(Rule pRule)
Interface required group |
java.lang.Object |
runActiveRule(SensedEnvironment pPE)
Passes the PerceivedEnvironment to the activeRule in its calculate() method. |
void |
setActiveRule(Rule pRule)
Sets the ActiveRule, used for goal attainment. |
void |
setGoalName(java.lang.String pGoalName)
|
void |
setGoalType(int pType)
Sets the Goals type, the developer should designate specific goal types to be used in the RELATE architecture. |
void |
setPastActiveRule(Rule pRule)
Setter and getter group |
java.lang.String |
toString()
Returns a formated description of this Goal suitable for printing |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public GoalCoordinate()
| Method Detail |
public void addRule(Rule pRule)
addRule in interface Goalpublic boolean removeRule(Rule pRule)
removeRule in interface GoalpRule - The Rule that is to be removed
public java.util.Vector getRuleList()
Goal
getRuleList in interface Goalpublic void assignCredit(SensedEnvironment pPE)
Goal
assignCredit in interface GoalpPE - The agent's perceived environment.public java.lang.Object runActiveRule(SensedEnvironment pPE)
Goal
runActiveRule in interface Goalpublic void setPastActiveRule(Rule pRule)
setPastActiveRule in interface GoalpRule - The agent's past active rule.public void setGoalType(int pType)
Goal
setGoalType in interface GoalpType - Integer representing the goal type.public void setActiveRule(Rule pRule)
Goal
setActiveRule in interface GoalpRule - The agent's active rule.public int getGoalType()
Goal
getGoalType in interface Goalpublic java.lang.String getGoalName()
Goal
getGoalName in interface Goalpublic void setGoalName(java.lang.String pGoalName)
public Rule getActiveRule()
Goal
getActiveRule in interface Goalpublic Rule getPastActiveRule()
Goal
getPastActiveRule in interface Goalpublic java.lang.String toString()
Goal
toString in interface Goal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||