|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.upb.swt.epctools.model.EPC
public class EPC
This class represents a complete EPC diagram with event and function nodes, connectors and arcs
| Nested Class Summary | |
|---|---|
class |
EPC.MappingCopy
|
| Field Summary | |
|---|---|
static byte |
FALSE
|
private java.util.Vector |
m_arcs
|
private ModelIdManager |
m_id_manager
|
private ModelListenerList |
m_listener
|
private boolean |
m_multiple_folders
|
private java.util.Vector |
m_nodes
|
protected EPC |
m_this
|
static byte |
STRONG
|
static byte |
TRUE
|
static byte |
UNKNOWN
|
static byte |
WEAK
|
| 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 | |
|---|---|
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. |
void |
forwardMessage(int message)
Forwards a message to all listener objects. |
Arc |
getArc(int id)
Returns the corresponding arc to an id. |
java.util.Vector |
getArcs()
Returns a Vector with all Arcs related to "this" EPC. |
EPC |
getCopy()
Returns a copy of "this" EPC |
EPC.MappingCopy |
getExactCopy()
Returns a copy of "this" EPC with a map from the current Node set to the copied Node set. |
ModelIdManager |
getIdManager()
Returns the IdManager; the IdManager computes unique id's for Nodes and Arcs. |
void |
getMessage(int msg_id)
This function is called upon changes on the model object. |
Node |
getNode(int id)
Returns the corresponding node to an id. |
java.util.Vector |
getNodes()
Returns a Vector with all Nodes related to "this" EPC. |
boolean |
hasOnlyLocalNodes()
Returns true iff all Nodes have locally defined semantics. |
boolean |
isConsistent()
This function computes whether the epc is syntactically correct and can be used by a Simulator. |
byte |
isInContactSituation()
Returns true if the EPC is in a contact situation in the actual state. |
boolean |
isReadyForSimulation()
Returns true iff "this" EPC is ready for simulation. |
void |
removeListener(ModelListener obj)
... |
void |
resetFolders()
Sets all folders to 0 for all Arcs |
void |
resetHighlighting()
This function resets the Nodes highlighting so that no Node is highlighted. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected EPC m_this
private java.util.Vector m_nodes
private java.util.Vector m_arcs
private ModelIdManager m_id_manager
private ModelListenerList m_listener
private boolean m_multiple_folders
public static final byte FALSE
public static final byte TRUE
public static final byte UNKNOWN
public static final byte WEAK
public static final byte STRONG
| Constructor Detail |
|---|
public EPC()
| Method Detail |
|---|
public void addListener(ModelListener obj)
public void removeListener(ModelListener obj)
public void forwardMessage(int message)
public EPC getCopy()
public boolean hasOnlyLocalNodes()
public void getMessage(int msg_id)
getMessage in interface ModelListenermsg_id - Message idpublic void resetHighlighting()
public ModelIdManager getIdManager()
public java.util.Vector getNodes()
public java.util.Vector getArcs()
public Node getNode(int id)
id - public Arc getArc(int id)
id - public EPC.MappingCopy getExactCopy()
public boolean isConsistent()
public byte isInContactSituation()
public void resetFolders()
public boolean isReadyForSimulation()
public boolean allowsMultipleFolders()
public void allowMultipleFolders(boolean flag)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||