|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.exporting.petrinet.cpnexport.HLImplementation.HLAttribute
public class HLAttribute
A data attribute represents a case data attribute that is available to activities
in the process (i.e., they can read it and provide new values).
Each data attribute has
HighLevelProcess#addDataAttribute(HLAttribute)
,
HighLevelActivity#addDataAttribute(HLAttribute)
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.processmining.framework.models.hlprocess.HighLevelDataAttribute |
---|
HighLevelDataAttribute.AttributeType |
Constructor Summary | |
---|---|
HLAttribute()
Default constructor. |
|
HLAttribute(HighLevelDataAttribute.AttributeType type,
java.lang.String name)
Constructor to create a data attribute of the specified name and type. |
|
HLAttribute(java.lang.String name)
Constructor to create a data attribute of the specified type. |
|
HLAttribute(java.lang.String name,
java.util.ArrayList<java.lang.String> values)
Constructor to create a fully-specified nominal data attribute. |
|
HLAttribute(java.lang.String name,
Distribution dist,
int initVal)
Constructor to create a fully-specified numeric data attribute. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Make a shallow copy of this object, |
java.lang.String |
getInitialValueNominal()
Retrieves the initial value for the associated data attribute. |
int |
getInitialValueNumeric()
Retrieves the initial value for the associated data attribute. |
java.lang.String |
getName()
Retrieves the name of this data attribute |
javax.swing.JPanel |
getPanel()
Returns the GUI panel representing this data attribute. |
java.util.List<java.lang.String> |
getPossibleValuesNominal()
Retrieves the possible values for the associated data attribute in the case that it is of a nominal type. |
Distribution |
getPossibleValuesNumeric()
Retrieves the possible values for the associated data attribute in the case that it is of a numeric type. |
HighLevelDataAttribute.AttributeType |
getType()
Retrieves the attribute type for this data attribute. |
java.lang.String |
toString()
|
void |
writeDistributionToDot(java.lang.String boxId,
java.lang.String nodeId,
java.lang.String addText,
java.io.Writer bw)
Writes the highlevel data attribute to dot. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.processmining.framework.models.hlprocess.HighLevelDataAttribute |
---|
equals, hashCode |
Constructor Detail |
---|
public HLAttribute()
public HLAttribute(java.lang.String name)
public HLAttribute(HighLevelDataAttribute.AttributeType type, java.lang.String name)
public HLAttribute(java.lang.String name, Distribution dist, int initVal)
name
- the name of the data attributedist
- the distribution of the possible valuesinitVal
- the initial valuepublic HLAttribute(java.lang.String name, java.util.ArrayList<java.lang.String> values)
name
- the name of the data attributevalues
- the possible values (first value in list represents the initial value)Method Detail |
---|
public java.lang.String getName()
HighLevelDataAttribute
getName
in interface HighLevelDataAttribute
public HighLevelDataAttribute.AttributeType getType()
HighLevelDataAttribute
getType
in interface HighLevelDataAttribute
public java.lang.String getInitialValueNominal()
HighLevelDataAttribute
getInitialValueNominal
in interface HighLevelDataAttribute
public int getInitialValueNumeric()
HighLevelDataAttribute
getInitialValueNumeric
in interface HighLevelDataAttribute
public java.util.List<java.lang.String> getPossibleValuesNominal()
HighLevelDataAttribute
getPossibleValuesNominal
in interface HighLevelDataAttribute
public Distribution getPossibleValuesNumeric()
HighLevelDataAttribute
getPossibleValuesNumeric
in interface HighLevelDataAttribute
public javax.swing.JPanel getPanel()
getPanel
in interface GuiDisplayable
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void writeDistributionToDot(java.lang.String boxId, java.lang.String nodeId, java.lang.String addText, java.io.Writer bw) throws java.io.IOException
HighLevelDataAttribute
writeDistributionToDot
in interface HighLevelDataAttribute
boxId
- the identifier of the box (in the DOT file) in which the relevant information of the highlevel data attribute
will be written.nodeId
- the identifier of the node (in the DOT file) to which the box that will be created has to be connected.
""
has to be provided if the box that will be created does not need to be connected to another node in the DOT file.addText
- additional text that needs to be filled in at the beginning of the boxbw
- Writer the BufferedWriter used to stream the data to the file
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |