|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdemo.helicopter.RuleGetEnemyFlag
RuleGetEnemyFlag implements the Rule interface in the RELATE architecture. This rule directs the agent to the enemy flag at max speed.
| Constructor Summary | |
RuleGetEnemyFlag()
Default constructor |
|
| Method Summary | |
java.lang.Object |
calculate(SensedEnvironment pPE)
Returns an Integer to be put in the protocol vector indicating which piece of code the agent uses in the ActionInterpreter. |
java.lang.String |
toString()
returns the name of the rule. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RuleGetEnemyFlag()
| Method Detail |
public java.lang.Object calculate(SensedEnvironment pPE)
calculate in interface RulepPE - The PerceivedEnvironment .
public java.lang.String toString()
toString in interface Rule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||