| 
|||||||||
| 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.BooleanTask
public class BooleanTask
Give an expression this is evaluated in the current context If it returns true the task passes else it fails
| Field Summary | |
|---|---|
protected  java.lang.String | 
_expression
 | 
| Fields inherited from class org.shapelogic.logic.BaseTask | 
|---|
_endTime, _failedSubTasksCount, _injector, _interest, _lastSubTaskState, _localContext, _localModule, _pathWork, _score, _selfWork, _selfWorkEstimate, _startTime, _state, _succededSubTasksCount, _value, 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 | |
|---|---|
BooleanTask(BaseTask parent,
            boolean createLocalContext,
            java.lang.String variable,
            java.lang.String expression)
 | 
|
| Method Summary | |
|---|---|
 boolean | 
match()
Can be overridden  | 
 void | 
setup()
Currently not super well define used for 2 purposes: Reset: called from the outside if you want to reuse it init: Called from the inside when calculation start to have everything setup maybe the semantic could work for both? TODO: This should be separated better.  | 
| 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
| Constructor Detail | 
|---|
public BooleanTask(BaseTask parent,
                   boolean createLocalContext,
                   java.lang.String variable,
                   java.lang.String expression)
| Method Detail | 
|---|
public boolean match()
match in interface Taskmatch in class BaseTaskpublic void setup()
LazyCalc
setup in interface LazyCalcsetup in class BaseTask
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||