|
||||||||||
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 Goal
public boolean removeRule(Rule pRule)
removeRule
in interface Goal
pRule
- The Rule that is to be removed
public java.util.Vector getRuleList()
Goal
getRuleList
in interface Goal
public void assignCredit(SensedEnvironment pPE)
Goal
assignCredit
in interface Goal
pPE
- The agent's perceived environment.public java.lang.Object runActiveRule(SensedEnvironment pPE)
Goal
runActiveRule
in interface Goal
public void setPastActiveRule(Rule pRule)
setPastActiveRule
in interface Goal
pRule
- The agent's past active rule.public void setGoalType(int pType)
Goal
setGoalType
in interface Goal
pType
- Integer representing the goal type.public void setActiveRule(Rule pRule)
Goal
setActiveRule
in interface Goal
pRule
- The agent's active rule.public int getGoalType()
Goal
getGoalType
in interface Goal
public java.lang.String getGoalName()
Goal
getGoalName
in interface Goal
public void setGoalName(java.lang.String pGoalName)
public Rule getActiveRule()
Goal
getActiveRule
in interface Goal
public Rule getPastActiveRule()
Goal
getPastActiveRule
in interface Goal
public 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 |