|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.kwfgrid.gwes.TransitionOccurrence
public class TransitionOccurrence
| Nested Class Summary | |
|---|---|
static class |
TransitionOccurrence.DefaultNamespaceContext
|
| Field Summary | |
|---|---|
boolean |
hasXPathEdgeExpressions
|
boolean |
simulation
|
TokenParameterList |
tokens
|
net.kwfgrid.gworkflowdl.structure.Transition |
transition
|
| Constructor Summary | |
|---|---|
TransitionOccurrence(net.kwfgrid.gworkflowdl.structure.Transition transition)
Constructor that uses next unlocked tokens on input/read/write places to build transition occurrence. |
|
| Method Summary | |
|---|---|
int |
checkConditions(ConditionChecker checker)
Check conditions of this transition occurrence. |
void |
evaluateXPathEdgeExpressions()
ToDo: execute only if necessary! As side effect, this methods adds namespaces declared by transition properties to nsContext. |
void |
generateResourceAllocationGroupPropertyFromActivity()
Generate the resource.allocation.group token property from activity resource. |
Activity |
getActivity()
|
org.jdom.Document |
getContext()
|
String |
getID()
|
String |
getIDwithOutputs()
|
org.jaxen.SimpleNamespaceContext |
getNamespaceContext()
|
String |
getNsUri(String nsPrefix)
|
DoubleDistribution |
getProbabilityDistribution()
|
net.kwfgrid.gworkflowdl.structure.GenericProperties |
getProps()
|
ArrayList<TokenParameter> |
getTokens()
|
void |
lockTokens()
Locks the input and - if available - the output tokens. |
void |
movePropertyToInputTokens(String propertyName)
Copy the property from the TransitionOccurrence to all input tokens and remove it from the TransitionOccurrence. |
void |
putOutputReservationTokens()
Put and lock reservation dummy tokens to output places. |
void |
putOutputTokens()
Puts output parameters to output places. |
void |
putProperty(String name,
String value)
Put a property to the list of properties. |
void |
removeInputTokens()
Remove input tokens. |
static void |
removeNamespacesWithoutPrefix(org.jdom.Element element)
Remove namespaces if this element does not have any namespace prefix. |
void |
removeOutputReservationTokens()
Remove reservation tokens from output places if there are any. |
void |
setActivity(Activity activity)
|
String |
toString()
|
void |
unlockTokens()
Unlocks the input and - if available - the output tokens. |
String |
updateID()
Updates and returns a ID that contains the ids of all available tokens. |
void |
updateWriteTokens()
Update tokens on write places if necessary. |
void |
writeWriteTokens()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final net.kwfgrid.gworkflowdl.structure.Transition transition
public TokenParameterList tokens
public boolean hasXPathEdgeExpressions
public final boolean simulation
| Constructor Detail |
|---|
public TransitionOccurrence(net.kwfgrid.gworkflowdl.structure.Transition transition)
throws net.kwfgrid.gworkflowdl.structure.WorkflowFormatException
transition -
net.kwfgrid.gworkflowdl.structure.WorkflowFormatException| Method Detail |
|---|
public void lockTokens()
public void unlockTokens()
public int checkConditions(ConditionChecker checker)
throws net.kwfgrid.gworkflowdl.structure.WorkflowFormatException
$input/) that are expanded by the corresponding
context XPath (e.g. /gwdl:data/input).
to - Transition occurrence to check.
ConditionChecker.CONDITION_TRUE if all conditions evaluate to true and
ConditionChecker.CONDITION_FALSE_STATIC
if a least one static condition evaluates to false.
ConditionChecker.CONDITION_FALSE_DYNAMIC if condition is false
just because of time-depend conditions that may change in future.
net.kwfgrid.gworkflowdl.structure.WorkflowFormatException - If the syntax of the condition is wrong.public void removeInputTokens()
public void putOutputReservationTokens()
throws net.kwfgrid.gworkflowdl.structure.CapacityException
net.kwfgrid.gworkflowdl.structure.CapacityExceptionpublic void removeOutputReservationTokens()
public void updateWriteTokens()
throws net.kwfgrid.gworkflowdl.structure.CapacityException
net.kwfgrid.gworkflowdl.structure.CapacityException
public void putOutputTokens()
throws net.kwfgrid.gworkflowdl.structure.CapacityException,
net.kwfgrid.gworkflowdl.structure.WorkflowFormatException
net.kwfgrid.gworkflowdl.structure.CapacityException
net.kwfgrid.gworkflowdl.structure.WorkflowFormatException
public void writeWriteTokens()
throws net.kwfgrid.gworkflowdl.structure.CapacityException
net.kwfgrid.gworkflowdl.structure.CapacityExceptionpublic String getID()
public String getIDwithOutputs()
public org.jdom.Document getContext()
public org.jaxen.SimpleNamespaceContext getNamespaceContext()
public String getNsUri(String nsPrefix)
public ArrayList<TokenParameter> getTokens()
public void evaluateXPathEdgeExpressions()
throws net.kwfgrid.gworkflowdl.structure.WorkflowFormatException
step -
net.kwfgrid.gworkflowdl.structure.WorkflowFormatException
public void putProperty(String name,
String value)
name - value - public static void removeNamespacesWithoutPrefix(org.jdom.Element element)
element - public void generateResourceAllocationGroupPropertyFromActivity()
public void movePropertyToInputTokens(String propertyName)
propertyName - The name of the property.public net.kwfgrid.gworkflowdl.structure.GenericProperties getProps()
public Activity getActivity()
public void setActivity(Activity activity)
public DoubleDistribution getProbabilityDistribution()
public String updateID()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||