|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.exporting.petrinet.cpnexport.HLImplementation.HLDataDependency
public class HLDataDependency
Represents a data dependency, which is a constraint on chosing the corresponding
alternative path at a decision point in the process.
Note that, currently, the actual constraint is represented as a String that can be
directly used in the guard condition of the target
transtion of the data dependency. This means that, for the time being, it is assumed
that the CPN structure of the DATA colourset is known as well as the names of the
attributes that are involved in the constraint.
Constructor Summary | |
---|---|
HLDataDependency(ModelGraphVertex source,
ModelGraphVertex target,
java.lang.String expr)
Creates a data dependency for chosing the alternative branch from the given source to the given target node. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
Equals based on the source node and the target node. |
java.lang.String |
getEscapedExpression()
Replaces every "\n" by a "\\n" (needed for DOT visualiztion). |
java.lang.String |
getExpression()
Retrieves the expression representing the constraint specified for chosing the represented alternative path. |
javax.swing.JPanel |
getPanel()
Returns the GUI panel representing this data dependency. |
ModelGraphVertex |
getSourceNode()
Retrieves the source node of the data dependency, i.e., the choice node representing the decision point. |
ModelGraphVertex |
getTargetNode()
Retrieves the target node of the data dependency, i.e., the first task or router node on the corresponding alternative path. |
int |
hashCode()
Hashcode based on the source node and the target node. |
void |
setExpression(java.lang.String expression)
Sets the expression representing the constraint for chosing the alternative path for this dependency (between two nodes) |
void |
setSourceNode(ModelGraphVertex source)
Assigns the starting point of the data dependency, i.e., the choice node representing the decision point. |
void |
setTargetNode(ModelGraphVertex target)
Assigns the end point of the data dependency, i.e., the first task or router node on the corresponding alternative path. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HLDataDependency(ModelGraphVertex source, ModelGraphVertex target, java.lang.String expr)
source
- target
- expression
- Method Detail |
---|
public java.lang.String getExpression()
HighLevelDataDependency
getExpression
in interface HighLevelDataDependency
public java.lang.String getEscapedExpression()
public void setExpression(java.lang.String expression)
HighLevelDataDependency
setExpression
in interface HighLevelDataDependency
expression
- String the expression for this dependencypublic ModelGraphVertex getSourceNode()
HighLevelDataDependency
getSourceNode
in interface HighLevelDataDependency
public ModelGraphVertex getTargetNode()
HighLevelDataDependency
getTargetNode
in interface HighLevelDataDependency
public void setSourceNode(ModelGraphVertex source)
HighLevelDataDependency
setSourceNode
in interface HighLevelDataDependency
source
- the source node to be setpublic void setTargetNode(ModelGraphVertex target)
HighLevelDataDependency
setTargetNode
in interface HighLevelDataDependency
target
- the target node to be setpublic boolean equals(java.lang.Object obj)
equals
in interface HighLevelDataDependency
equals
in class java.lang.Object
obj
- the object to be compared
public int hashCode()
hashCode
in interface HighLevelDataDependency
hashCode
in class java.lang.Object
public javax.swing.JPanel getPanel()
public java.lang.Object clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |