|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.sc.ants.Action
An action taken by an agent
Field Summary | |
java.lang.String |
type
The type of action. |
double |
value
An amount associated with the type. |
Constructor Summary | |
Action(java.lang.String s)
Action constructor. |
|
Action(java.lang.String a,
double d)
Action constructor. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public java.lang.String type
public double value
Constructor Detail |
public Action(java.lang.String a, double d)
a
- type of action ("move", "heading")d
- length of actionpublic Action(java.lang.String s)
a
- type of action ("move", "heading")
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |