|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdemo.helicopter.RuleOffense1
RuleOffense1 implements the Rule interface in the RELATE architecture. This rule directs the agent to the enemy flag at max speed.
Constructor Summary | |
RuleOffense1()
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 RuleOffense1()
Method Detail |
public java.lang.Object calculate(SensedEnvironment pPE)
calculate
in interface Rule
pPE
- 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 |