|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.framework.models.heuristics.MarkingHeuristicsNet
public class MarkingHeuristicsNet
Title:
Description:
Copyright: Copyright (c) 2004
Company:
Constructor Summary | |
---|---|
MarkingHeuristicsNet(HeuristicsNet net,
java.util.Random generator)
Build an initial marking for a given heuristics net. |
Method Summary | |
---|---|
boolean |
endPlace()
|
int |
fire(int element,
ProcessInstance pi,
int elementPositionInPi)
Fires a element even if it is not enabled. |
HNSubSet |
getCurrentEnabledElements()
Returns the current enabled elements at the current marking. |
int |
getCurrentNumEnabledElements()
Returns the current number of enabled elements at the current marking. |
int |
getNumberTokens()
The number of places that are marked in the current net |
int |
getNumTokensEndPlace()
|
boolean |
isEnabled(int element)
|
java.lang.String |
printCurrentMarking()
Prints the currents marking. |
boolean |
properlyCompleted()
|
void |
reset()
Sets the marking to the initial marking. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MarkingHeuristicsNet(HeuristicsNet net, java.util.Random generator) throws java.lang.NullPointerException
net
- an enhanced heuristics net to which the initial marking must be built.
java.lang.NullPointerException
- whenever the net has disconnected elements. An element is disconnected
when its INPUT or OUTPUT set is null.Method Detail |
---|
public void reset()
public java.lang.String printCurrentMarking()
public int getNumberTokens()
public boolean properlyCompleted()
public boolean endPlace()
public int getNumTokensEndPlace()
public int fire(int element, ProcessInstance pi, int elementPositionInPi)
Note: The element MUST be in the net.
element
- element to be fired.pi
- process instance where the element to be fired is.elementPositionInPi
- element position.
public boolean isEnabled(int element)
public HNSubSet getCurrentEnabledElements()
public int getCurrentNumEnabledElements()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |