|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdemo.helicopter.RuleDefense1
RuleDefense1 implements the Rule interface in the RELATE architecture. This rule keep the agent within 250 meters from its own flag, traveling at top speed.
Constructor Summary | |
RuleDefense1()
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 RuleDefense1()
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 |