|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdemo.helicopter.RuleEngageEnemy
RuleEngageEnemy implements the Rule interface in the RELATE architecture. This rule has the agent shoot at all sensed bad guys. It trains the turret and elevates the barrel untill they are pointed at the enemy, then shoots.
Constructor Summary | |
RuleEngageEnemy()
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 RuleEngageEnemy()
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 |