org.shapelogic.logic
Class CalcAndSetTask<T>

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by org.shapelogic.logic.BaseTask<T>
          extended by org.shapelogic.logic.CalcAndSetTask<T>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<com.google.inject.Module>, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode, org.apache.commons.jexl.JexlContext, Calc0<T>, CalcInvoke<T>, CalcValue<T>, LazyCalc<T>, Task<T>

public class CalcAndSetTask<T>
extends BaseTask<T>

Author:
Sami Badawi This only checks that something exists or can be found by a calculation
See Also:
Serialized Form

Field Summary
protected  java.lang.Object _expression
           
protected  java.lang.String _nameInContext
           
 
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
CalcAndSetTask(BaseTask parent, java.lang.String nameInContext, java.lang.Object expression)
          Test is something exist in another context
 
Method Summary
 boolean match()
          match() should be seen like a unify that can also try to set fields So this can be overridden
 
Methods inherited from class org.shapelogic.logic.BaseTask
calcNextSubTask, doPrintOnFail, errorOnFail, findEnumValue, findNamedValue, findNamedValueUsingSubTasks, getContext, getContextCalculation, getContextCalculationMap, getInjector, getInterest, getLastSubTaskState, getLocalContext, getLocalModule, getLowestContext, getName, getNamedTask, getNamedValue, getParentTask, getPathWork, getScore, getSelfTreeNode, getSelfWork, getSelfWorkEstimate, getState, getValue, getVars, invoke, isDirty, isPrintOnFail, iterator, mainCalc, postCalc, preCalc, setClassInContext, setClassInContext, setClassInContext, setContextCalculation, setInterest, setName, setNamedTask, setNamedValue, setPrintOnFail, setState, setup, setVars
 
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

_nameInContext

protected java.lang.String _nameInContext

_expression

protected java.lang.Object _expression
Constructor Detail

CalcAndSetTask

public CalcAndSetTask(BaseTask parent,
                      java.lang.String nameInContext,
                      java.lang.Object expression)
Test is something exist in another context

Method Detail

match

public boolean match()
Description copied from class: BaseTask
match() should be seen like a unify that can also try to set fields So this can be overridden

Specified by:
match in interface Task<T>
Overrides:
match in class BaseTask<T>


Copyright © 2008. All Rights Reserved.