|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.williams.cs.ljil.introspector.AbstractStepIntrospector
public abstract class AbstractStepIntrospector
This class allows one to ask questions about a step and the process that it comes from.
| Field Summary | |
|---|---|
protected laser.littlejil.AbstractStep |
abstractStep
The step being introspected. |
| Constructor Summary | |
|---|---|
protected |
AbstractStepIntrospector()
Constructs an introspector for a step. |
| Method Summary | |
|---|---|
boolean |
acquiresAgent()
Method acquiresAgent. |
static AbstractStepIntrospector |
createStepIntrospector(laser.littlejil.AbstractStep step)
Factory method that constructs the appropriate class of introspector based on the class of the step passed in |
laser.littlejil.SubstepBinding |
getBindingToParent()
|
abstract laser.littlejil.Step |
getConcreteStep()
|
java.util.Iterator |
getExceptions()
|
protected abstract java.util.Iterator |
getFirstSubsteps()
|
laser.littlejil.HandlerBinding |
getHandlerFor(java.lang.String exceptionName)
Method getHandlerFor returns the exception handler for a given exception. |
java.util.Iterator |
getHandlers()
Method getHandlers. |
java.util.Iterator |
getInputParameterNames()
|
java.lang.Class[] |
getInputParamTypes()
|
int |
getMaxCardinality()
|
int |
getMinCardinality()
|
java.lang.String |
getName()
|
java.util.Iterator |
getOutputParameterNames()
|
java.lang.Class[] |
getOutputParamTypes()
|
java.util.Iterator |
getParameterNames()
|
java.lang.Class[] |
getParamTypes()
|
laser.littlejil.RequisiteBinding |
getPostrequisiteBinding()
|
laser.littlejil.AbstractStep |
getPostrequisiteRoot()
|
laser.littlejil.RequisiteBinding |
getPrerequisiteBinding()
|
laser.littlejil.AbstractStep |
getPrerequisiteRoot()
|
java.util.Collection |
getReachableLeaves()
|
protected java.util.Collection |
getReachableLeaves(java.util.Collection visitedSteps)
|
java.util.Iterator |
getResourceAcquisitionParameterNames()
|
laser.littlejil.AbstractStep |
getSubstep(int n)
|
java.util.Iterator |
getSubstepBindings()
|
int |
getSubstepIndex(laser.littlejil.AbstractStep step)
|
java.util.Iterator |
getSubsteps()
|
boolean |
hasDeadline()
Method hasDeadline. |
boolean |
hasPostrequisite()
|
boolean |
hasPrerequisite()
|
boolean |
isChoice()
|
boolean |
isLeaf()
|
boolean |
isOptional()
|
boolean |
isParallel()
|
boolean |
isSequential()
|
boolean |
isTry()
|
int |
numExceptions()
|
int |
numHandledExceptions()
Method numHandledExceptions. |
int |
numInputParams()
|
int |
numOutputParams()
|
int |
numParams()
|
int |
numResourcesAcquired()
Method numResourcesAcquired. |
int |
numSubsteps()
|
protected static java.util.Collection |
visit(laser.littlejil.AbstractStep step,
java.util.Collection visitedSteps)
Visit this step looking for reachable leaves. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected laser.littlejil.AbstractStep abstractStep
| Constructor Detail |
|---|
protected AbstractStepIntrospector()
| Method Detail |
|---|
public static AbstractStepIntrospector createStepIntrospector(laser.littlejil.AbstractStep step)
throws NullStepException
theStep - the step that will be introspected
NullStepException - thrown if theStep is null or its type is
NullSteppublic java.lang.String getName()
public abstract laser.littlejil.Step getConcreteStep()
public boolean isLeaf()
public boolean isSequential()
public boolean isParallel()
public boolean isChoice()
public boolean isTry()
public int numParams()
public int numOutputParams()
public int numInputParams()
public java.lang.Class[] getParamTypes()
public java.lang.Class[] getInputParamTypes()
public java.lang.Class[] getOutputParamTypes()
public java.util.Iterator getParameterNames()
public java.util.Iterator getInputParameterNames()
public java.util.Iterator getOutputParameterNames()
public java.util.Iterator getResourceAcquisitionParameterNames()
public int numExceptions()
public java.util.Iterator getExceptions()
public java.util.Collection getReachableLeaves()
protected java.util.Collection getReachableLeaves(java.util.Collection visitedSteps)
visitedSteps - the steps that have already been visited during
this search for reachable leaves. We need this information to avoid
infinite recursion if the process is recursive.
protected static java.util.Collection visit(laser.littlejil.AbstractStep step,
java.util.Collection visitedSteps)
throws NullStepException
step - the step to visitvisitedSteps - the steps that have already been visited.
NullStepException - thrown if step is nullprotected abstract java.util.Iterator getFirstSubsteps()
public laser.littlejil.AbstractStep getSubstep(int n)
throws NoSuchSubstepException
n - the index of the substep to return. The first substep has
index 0
NoSuchSubstepException - thrown if the step is a leaf or
if n is not a valid substep index for this steppublic java.util.Iterator getSubsteps()
public java.util.Iterator getSubstepBindings()
public int numSubsteps()
public int getSubstepIndex(laser.littlejil.AbstractStep step)
throws NoSuchSubstepException
substep - the substep to look for
NoSuchSubstepException - thrown if the substep is not foundpublic boolean isOptional()
public laser.littlejil.SubstepBinding getBindingToParent()
public int getMinCardinality()
public int getMaxCardinality()
public boolean hasPrerequisite()
public laser.littlejil.RequisiteBinding getPrerequisiteBinding()
public laser.littlejil.AbstractStep getPrerequisiteRoot()
public laser.littlejil.RequisiteBinding getPostrequisiteBinding()
public boolean hasPostrequisite()
public laser.littlejil.AbstractStep getPostrequisiteRoot()
public boolean hasDeadline()
public int numResourcesAcquired()
public boolean acquiresAgent()
public int numHandledExceptions()
public java.util.Iterator getHandlers()
public laser.littlejil.HandlerBinding getHandlerFor(java.lang.String exceptionName)
The - name of the exception whose handler we should find.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||