|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdemo.helicopter.RuleProtectOwnFlag
Rule interface for use with the RELATE architecture. Requires the user to define the method "calculate" which receives a perceived environment and returns and integer symbolizing the selected action chosen by this Rule.
| Constructor Summary | |
RuleProtectOwnFlag()
|
|
| Method Summary | |
java.lang.Object |
calculate(SensedEnvironment pPE)
Uses the passed in perceived environment as input to a calculation which selects one of a finite number of previously defined (and enumerated) actions to be returned. |
java.lang.String |
toString()
Returns a formated description of this Rule suitable for printing |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RuleProtectOwnFlag()
| Method Detail |
public java.lang.Object calculate(SensedEnvironment pPE)
calculate in interface RulepPE - The PerceivedEnvironment that the Rule uses to calculate the
action determined by this Rule.
public java.lang.String toString()
Rule
toString in interface Rule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||