|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdemo.helicopter.RuleCoordinate
RuleCoordinate implements the Rule interface in the RELATE architecture. This rule coordinates the forces of the squad relationship.
| Constructor Summary | |
RuleCoordinate()
Default constructor |
|
| 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. |
void |
issueOrders(CTFAgent pCTFAgent)
Tests to see how many tanks and if there is one assigns it the defensive goal all others will be assigned the offensive goal. |
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 RuleCoordinate()
| Method Detail |
public void issueOrders(CTFAgent pCTFAgent)
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()
toString in interface Rule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||