|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.williams.cs.ljil.introspector.ItemIntrospector
public abstract class ItemIntrospector
This class allows one to ask questions about the state of an agenda item, the process instance it is a member of, and the process definition it comes from.
| Field Summary | |
|---|---|
protected laser.littlejil.AbstractStep |
abstractStep
The abstract step that this agenda item represents. |
protected laser.littlejil.Step |
concreteStep
The concrete step that this agenda item represents. |
protected laser.juliette.ams.AgendaItem |
item
The agenda item that it answers questions for |
protected laser.juliette.ams.AgendaItem |
parentItem
The parent item |
protected AbstractStepIntrospector |
stepIntrospector
An introspector for the step to allow asking questions about the process definition. |
| Constructor Summary | |
|---|---|
protected |
ItemIntrospector(laser.juliette.ams.AgendaItem theItem)
Constructs an introspector for an agenda item. |
| Method Summary | |
|---|---|
static ItemIntrospector |
createItemIntrospector(laser.juliette.ams.AgendaItem theItem)
Constructs an introspector for an agenda item. |
abstract java.util.Collection |
followsChild(laser.littlejil.AbstractStep child)
|
laser.littlejil.AbstractStep |
getAbstractStep()
|
int |
getCardinalityPosition()
|
laser.littlejil.Step |
getConcreteStep()
|
java.util.Iterator |
getInputParameterNames()
|
java.lang.Class[] |
getInputParamTypes()
|
java.lang.Object[] |
getInputParamValues()
|
laser.juliette.ams.AgendaItem |
getItem()
|
int |
getMaxCardinality()
|
int |
getMinCardinality()
|
java.lang.String |
getName()
|
java.util.Collection |
getNextSteps()
|
java.util.Iterator |
getOutputParameterNames()
|
java.lang.Class[] |
getOutputParamTypes()
|
java.util.Iterator |
getParameterNames()
|
java.lang.Class[] |
getParamTypes()
|
java.util.Iterator |
getPossibleExceptions()
|
java.util.Collection |
getReachableLeaves()
|
java.util.Iterator |
getSiblingItems()
|
laser.littlejil.AbstractStep |
getSubstep(int n)
|
int |
getSubstepIndex(laser.littlejil.AbstractStep step)
|
java.util.Iterator |
getSubsteps()
|
boolean |
isChoice()
|
boolean |
isLeaf()
|
boolean |
isParallel()
|
boolean |
isSequential()
|
boolean |
isTry()
|
int |
numInputParams()
|
int |
numOutputParams()
|
int |
numParams()
|
int |
numSubsteps()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected laser.juliette.ams.AgendaItem item
protected laser.juliette.ams.AgendaItem parentItem
protected AbstractStepIntrospector stepIntrospector
protected laser.littlejil.AbstractStep abstractStep
protected laser.littlejil.Step concreteStep
| Constructor Detail |
|---|
protected ItemIntrospector(laser.juliette.ams.AgendaItem theItem)
throws NullItemException,
laser.juliette.ams.AMSException
theItem - the agenda item that will be introspected
NullItemException - thrown if theItem is null
laser.juliette.ams.AMSException - thrown if we can't contact the agenda
management system| Method Detail |
|---|
public static ItemIntrospector createItemIntrospector(laser.juliette.ams.AgendaItem theItem)
throws NullItemException,
laser.juliette.ams.AMSException
theItem - the agenda item that will be introspected
NullItemException - thrown if theItem is null
laser.juliette.ams.AMSException - thrown if we can't contact the agenda
management systempublic laser.juliette.ams.AgendaItem getItem()
public laser.littlejil.Step getConcreteStep()
public laser.littlejil.AbstractStep getAbstractStep()
public boolean isLeaf()
public boolean isSequential()
public boolean isParallel()
public boolean isChoice()
public boolean isTry()
public java.lang.String getName()
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.lang.Object[] getInputParamValues()
throws laser.juliette.ams.AMSException
laser.juliette.ams.AMSException - if communication with the agenda is lostpublic java.util.Iterator getPossibleExceptions()
public java.util.Collection getReachableLeaves()
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 found
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.Collection getNextSteps()
throws laser.juliette.ams.AMSException
laser.juliette.ams.AMSException - The agent lost contact with its agenda
public abstract java.util.Collection followsChild(laser.littlejil.AbstractStep child)
throws laser.juliette.ams.AMSException
child - the child of this item that we want to find followers of
laser.juliette.ams.AMSException - thrown if cannot communicate with the agenda
management systempublic int getMinCardinality()
public int getMaxCardinality()
public int getCardinalityPosition()
throws laser.juliette.ams.AMSException
laser.juliette.ams.AMSException - thrown if we cannot contact the agenda
management system
public java.util.Iterator getSiblingItems()
throws laser.juliette.ams.AMSException
laser.juliette.ams.AMSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||