|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.upb.swt.epctools.simulator.explicit.TransitionSystem
class TransitionSystem
Implements a data structure and algorithms for calculating and accessing the semantics of an EPC. The semantics is represented as a transition system.
| Field Summary | |
|---|---|
private boolean |
aborted
Flag that indicates that the calculation of the transition system should be aborted. |
private boolean |
clean
Indicates whether the transition system is clean. |
(package private) boolean |
contact
Flag that indicates that a contact situation was encountered during the construction of the transition system. |
(package private) EPC_DS |
epc
The EPC to which this transition system belongs to. |
private int |
index
Index of property which is currently marked. |
private long |
maxMemory
Maximal amount of memory available. |
private java.util.LinkedList[] |
newBackwardsOrJoinStates
The newly marked states during the backwards marking algorithm for the OR-join connectors. |
private java.util.LinkedList[] |
newBackwardsXorJoinStates
The newly marked states during the backwards marking algorithm for the XOR-join connectors. |
private java.util.LinkedList |
newForwardStates
The new set of states of the transition system. |
private java.util.LinkedList |
newlyMarkedStates
Newly marked states during the marking algorithms for checking some properties. |
(package private) static int |
NO_OF_PROP
Number of properties to be marked. |
(package private) static int |
NOT_SOUND
Index for existence of a path to proper termination. |
(package private) int |
noTransitions
The number of transitions. |
private java.lang.Runtime |
runtime
Runtime object in which the simulation is running. |
(package private) java.util.HashMap |
states
The set of states of this transition system represented as a mapping from the corresponding BitSet to the State. |
(package private) static int |
WEAKLY_SOUND
Index for existence of a path to proper termination. |
| Constructor Summary | |
|---|---|
TransitionSystem(EPC_DS epc)
Initializes a new empty transition system. |
|
| Method Summary | |
|---|---|
(package private) void |
abort()
Aborts the calculation of the transition system. |
(package private) State |
addState(java.util.BitSet bitset)
Adds a new state to the transitions system. |
(package private) Transition |
addTransition(State source,
Node_DS node,
State target)
Adds a new transition to the transitions system. |
private void |
backwardMarkStates()
Backward marking algorithm. |
(package private) void |
calculate()
Calculates the transition system of the EPC starting from the states that have been added to the EPC already. |
private void |
checkMemory()
Checks whether there is still enough memory for the simulation. |
(package private) void |
checkProperties()
Initiates the marking algorithms for calculating the properties of the EPC. |
(package private) boolean |
hasContact()
Returns whether there were contact situations during the construction of the transition system. |
(package private) boolean |
isClean()
Returns whether the calculated transition system is clean. |
(package private) void |
resume()
Prepares for resuming the calulation of the transition system. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
EPC_DS epc
java.util.HashMap states
boolean contact
private boolean aborted
int noTransitions
private java.util.LinkedList newForwardStates
private java.util.LinkedList[] newBackwardsOrJoinStates
private java.util.LinkedList[] newBackwardsXorJoinStates
private boolean clean
private java.lang.Runtime runtime
private long maxMemory
private java.util.LinkedList newlyMarkedStates
private int index
static final int NO_OF_PROP
static final int WEAKLY_SOUND
static final int NOT_SOUND
| Constructor Detail |
|---|
TransitionSystem(EPC_DS epc)
epc - the EPC to which the transition system belongs| Method Detail |
|---|
State addState(java.util.BitSet bitset)
bitset - the assignment of folders of the state to be added
Transition addTransition(State source,
Node_DS node,
State target)
source - the source state of the transitionnode - the firing nodetarget - the target state of the transition
boolean isClean()
boolean hasContact()
void abort()
resume() and then calling
calculate() again.
void resume()
abort(),
this method must be called before calling calculate() again.
private void checkMemory()
throws EPCSimulationException
EPCSimulationException - if not enough memory is available
void calculate()
throws EPCSimulationException
EPCSimulationException - if not enough memory is available
private void backwardMarkStates()
throws EPCSimulationException
EPCSimulationException
void checkProperties()
throws EPCSimulationException
EPCSimulationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||