|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ActionTreeNode is an interface for a Action command, recursion is used heavily to traverse other nodes, scheme is used to determine the next action.
ActionTree,
BasicActionNode| Method Summary | |
int |
countActionPerformed()
|
boolean |
getCanRunAgain()
Peek and see if this action can be run again, it will take into account first runs. |
java.lang.String |
getKey()
|
int |
getLevel()
|
int |
getLevelThreshold()
|
double |
getMaxScoreThreshold()
|
double |
getMinScoreThreshold()
|
int |
getMultipleRunsFlag()
|
double |
getPoints()
RunAction should affect the result here |
java.lang.Object |
runAction()
The following methods keep a tab on where these actions have been run. |
void |
setForceRunFlag(boolean setting)
|
void |
setKey(java.lang.String _newkey)
|
void |
setLevel(int val)
|
void |
setMultipleRunsFlag(int val)
Can this action be run more than once? |
void |
setProcessThreadNode(BotProcessThread _process)
|
void |
setRunFlag(boolean setting)
|
void |
setScoreHitSet(double points,
double pass,
double fail)
|
void |
setScoreRangeSet(int travel,
double _min,
double _max)
For scanning a possible solution, the min and max values are used to define the threshold for when to stop executing. |
int |
travelNullSet(int level)
Travel down an empty set of actions, shouldn't be used extensively. |
| Method Detail |
public int travelNullSet(int level)
public java.lang.Object runAction()
throws java.lang.Exception
Boolean
Double
java.lang.ExceptionNullActionImplpublic void setForceRunFlag(boolean setting)
public void setRunFlag(boolean setting)
public int countActionPerformed()
public void setMultipleRunsFlag(int val)
public int getMultipleRunsFlag()
public java.lang.String getKey()
public void setKey(java.lang.String _newkey)
public void setScoreRangeSet(int travel,
double _min,
double _max)
throws InvalidScoreException
InvalidScoreException
public void setScoreHitSet(double points,
double pass,
double fail)
throws InvalidScoreException
InvalidScoreException
public double getPoints()
throws InvalidScoreException
InvalidScoreExceptionpublic void setLevel(int val)
public int getLevel()
public int getLevelThreshold()
public double getMaxScoreThreshold()
public double getMinScoreThreshold()
public boolean getCanRunAgain()
public void setProcessThreadNode(BotProcessThread _process)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||