|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
org.shapelogic.logic.BaseTask
org.shapelogic.logic.SimpleTask
public class SimpleTask
Base class for tasks where you have an expression to be evaluated in local context and an expected value.
| Field Summary | |
|---|---|
protected java.lang.Object |
_expected
|
protected java.lang.String |
_expression
|
| Fields inherited from class org.shapelogic.logic.BaseTask |
|---|
_calcValue, _endTime, _failedSubTasksCount, _injector, _interest, _lastSubTaskState, _localContext, _localModule, _pathWork, _score, _selfWork, _selfWorkEstimate, _startTime, _state, _succededSubTasksCount, CONTEXT_CALCULATION_MAP, DEFAULT_INTEREST, DEFAULT_SCORE, NAMED_TASKS, WORK_NOT_KNOWN |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
|---|---|
SimpleTask(BaseTask parent,
boolean createLocalContext,
java.lang.String expression,
java.lang.Object expectedValue)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getExpression()
Get the expression that is evaluated in the JEXL context. |
boolean |
match()
Can be overridden |
void |
setup()
|
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.swing.tree.TreeNode |
|---|
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf |
| Field Detail |
|---|
protected java.lang.String _expression
protected java.lang.Object _expected
| Constructor Detail |
|---|
public SimpleTask(BaseTask parent,
boolean createLocalContext,
java.lang.String expression,
java.lang.Object expectedValue)
| Method Detail |
|---|
public boolean match()
match in interface Taskmatch in class BaseTaskpublic void setup()
setup in interface LazyCalcsetup in class BaseTaskpublic java.lang.String getExpression()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||