|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.upb.swt.epctools.simulator.EPCSimulator
public class EPCSimulator
This class contains interface functions for the simulation of an EPC and accesses the simulator functionality implemented in the EPC model.
| Nested Class Summary | |
|---|---|
class |
EPCSimulator.Information
|
private class |
EPCSimulator.RefreshHighlightingComputationThread
|
private class |
EPCSimulator.RefreshInformationComputationThread
|
| Field Summary | |
|---|---|
private int |
m_current_algorithm
|
private EPC |
m_epc
|
private EPC_DS |
m_exp_epc
|
private boolean |
m_highlighting_up_to_date
|
private EPCSimulator.Information |
m_information
|
private boolean |
m_information_up_to_date
|
private ModelListenerList |
m_listener
|
private EPCSimulator.RefreshHighlightingComputationThread |
m_refresh_highlighting_computation_thread
|
private EPCSimulator.RefreshInformationComputationThread |
m_refresh_information_computation_thread
|
private EPC.MappingCopy |
m_simplified_epc
|
private boolean |
m_simplified_epc_up_to_date
|
private EPC_DS |
m_simplified_exp_epc
|
private SimEPC |
m_simplified_sym_epc
|
private boolean |
m_simulation_epc_up_to_date
|
private SimEPC |
m_sym_epc
|
private boolean |
m_use_optimistic_semantics
|
static int |
NO_THREAD_EXPLICIT_COMPUTATION_MAXIMUM
|
static int |
NO_THREAD_SYMBOLIC_COMPUTATION_MAXIMUM
|
static java.lang.String |
REFRESH_INFORMATION_DIALOG_TITLE
|
static int |
SIM_ALG_EXPLICIT
|
static int |
SIM_ALG_SYMBOLIC
|
| Fields inherited from interface de.upb.swt.epctools.model.tools.ModelListener |
|---|
MSG_ARC_ADDED, MSG_ARC_RECONNECTED, MSG_ARC_REMOVED, MSG_BEND_POINT_CHANGE, MSG_CHANGED_ALGORITHM, MSG_CONSTRAINT_CHANGED, MSG_DESCRIPTION_CHANGED, MSG_FOLDERS_CHANGED, MSG_HIGHLIGHTING_CHANGED, MSG_IN_ARC_ADDED, MSG_IN_ARC_REMOVED, MSG_INFO_CHANGED, MSG_LOCATION_CHANGED, MSG_NAME_CHANGED, MSG_NODE_ADDED, MSG_NODE_REMOVED, MSG_OUT_ARC_ADDED, MSG_OUT_ARC_REMOVED, MSG_SIZE_CHANGED, MSG_SOURCE_CHANGED, MSG_STRUCTURE_CHANGED, MSG_TARGET_CHANGED |
| Constructor Summary | |
|---|---|
EPCSimulator(EPC orig_epc)
Initialization |
|
| Method Summary | |
|---|---|
void |
addListener(ModelListener obj)
... |
void |
allowMultipleFolders(boolean flag)
Set... |
boolean |
allowsMultipleFolders()
Returns ture if Arcs can hold multiple folders, else it returns false meaning that Arcs can hold at most one folder. |
private void |
computeSimplifiedEPC()
|
(package private) void |
createSimulationEPC(EPC epc)
|
void |
forwardMessage(int message)
Forwards a message to all listener objects. |
int |
getCurrentAlgorithm()
|
EPCSimulator.Information |
getInformation()
Returns some information. |
void |
getMessage(int msg_id)
This function is called upon changes on the model object. |
boolean |
isHighlightingUpToDate()
Returns whether the highlighting of enabled Nodes is up to date. |
java.lang.String |
printDebugInformation()
Prints some information about the algorithm state. |
void |
refreshHighlighting()
This function computes all Nodes of the EPC which are enabled and highlight them. |
private void |
refreshHighlightingWithoutInteraction()
|
void |
refreshInformation()
This functions updates the EPC semantics info box. |
private void |
refreshInformationWithoutInteraction()
|
void |
removeListener(ModelListener obj)
... |
void |
setCurrentAlgorithm(int algorithm_id)
|
private boolean |
trySimplifiedHighlightingComputation()
Returns true iff the computation was successful. |
void |
useOptimisticSemantics(boolean use_optimistic_semantics)
This function sets a flag so that the optimistic semantics relation is preferred or not. |
boolean |
usesOptimisticSemantics()
Returns true if the optimistic semantics relation is preferred. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private EPC m_epc
private SimEPC m_sym_epc
private EPC_DS m_exp_epc
private int m_current_algorithm
private EPCSimulator.RefreshInformationComputationThread m_refresh_information_computation_thread
private EPCSimulator.RefreshHighlightingComputationThread m_refresh_highlighting_computation_thread
private EPC.MappingCopy m_simplified_epc
private SimEPC m_simplified_sym_epc
private EPC_DS m_simplified_exp_epc
private ModelListenerList m_listener
private EPCSimulator.Information m_information
private boolean m_highlighting_up_to_date
private boolean m_information_up_to_date
private boolean m_simplified_epc_up_to_date
private boolean m_simulation_epc_up_to_date
private boolean m_use_optimistic_semantics
public static final java.lang.String REFRESH_INFORMATION_DIALOG_TITLE
public static final int NO_THREAD_SYMBOLIC_COMPUTATION_MAXIMUM
public static final int NO_THREAD_EXPLICIT_COMPUTATION_MAXIMUM
public static final int SIM_ALG_SYMBOLIC
public static final int SIM_ALG_EXPLICIT
| Constructor Detail |
|---|
public EPCSimulator(EPC orig_epc)
| Method Detail |
|---|
void createSimulationEPC(EPC epc)
public void addListener(ModelListener obj)
public void removeListener(ModelListener obj)
public void forwardMessage(int message)
public void getMessage(int msg_id)
getMessage in interface ModelListenermsg_id - Message idpublic boolean isHighlightingUpToDate()
public void useOptimisticSemantics(boolean use_optimistic_semantics)
public boolean usesOptimisticSemantics()
public boolean allowsMultipleFolders()
public void allowMultipleFolders(boolean flag)
public void refreshHighlighting()
throws EPCComputationException
EPCComputationException
private void refreshHighlightingWithoutInteraction()
throws EPCComputationException
EPCComputationException
private boolean trySimplifiedHighlightingComputation()
throws EPCComputationException
EPCComputationExceptionpublic EPCSimulator.Information getInformation()
public void refreshInformation()
throws EPCComputationException
EPCComputationException
private void refreshInformationWithoutInteraction()
throws EPCComputationException
EPCComputationExceptionprivate void computeSimplifiedEPC()
public java.lang.String printDebugInformation()
public void setCurrentAlgorithm(int algorithm_id)
public int getCurrentAlgorithm()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||