public class CausalActivityMatrixImpl extends java.lang.Object implements CausalActivityMatrix
Modifier | Constructor and Description |
---|---|
protected |
CausalActivityMatrixImpl() |
Modifier and Type | Method and Description |
---|---|
void |
exportToFile(java.io.File file) |
java.util.List<org.deckfour.xes.classification.XEventClass> |
getActivities()
Returns the (ordered) list of activities.
|
java.lang.String |
getLabel()
Returns the label for this matrix.
|
double |
getMatch(CausalActivityMatrix matrix)
Gets the value how good the given matrix matches this matrix:
- 1.0 means a perfect positive match, both matrices are equal.
|
double |
getValue(org.deckfour.xes.classification.XEventClass rowActivity,
org.deckfour.xes.classification.XEventClass columnActivity)
Gets the value for the given row and column activity.
|
void |
importFromStream(java.io.InputStream input) |
void |
init(java.lang.String label,
java.util.Set<org.deckfour.xes.classification.XEventClass> activities)
Initializes the matrix for the given collection of activities.
|
void |
setValue(org.deckfour.xes.classification.XEventClass rowActivity,
org.deckfour.xes.classification.XEventClass columnActivity,
double value)
Sets the value for the given row and column activity.
|
java.lang.String |
toHTMLString(boolean includeHTMLTags) |
public void init(java.lang.String label, java.util.Set<org.deckfour.xes.classification.XEventClass> activities)
CausalActivityMatrix
init
in interface CausalActivityMatrix
label
- The label to use for this matrix.activities
- The given collection of activities.public java.lang.String getLabel()
CausalActivityMatrix
getLabel
in interface CausalActivityMatrix
public java.util.List<org.deckfour.xes.classification.XEventClass> getActivities()
CausalActivityMatrix
getActivities
in interface CausalActivityMatrix
public void setValue(org.deckfour.xes.classification.XEventClass rowActivity, org.deckfour.xes.classification.XEventClass columnActivity, double value)
CausalActivityMatrix
setValue
in interface CausalActivityMatrix
rowActivity
- The given row activity.columnActivity
- The given column activity.value
- The given value.public double getValue(org.deckfour.xes.classification.XEventClass rowActivity, org.deckfour.xes.classification.XEventClass columnActivity)
CausalActivityMatrix
getValue
in interface CausalActivityMatrix
rowActivity
- The given row activity.columnActivity
- The given column activity.public double getMatch(CausalActivityMatrix matrix)
CausalActivityMatrix
getMatch
in interface CausalActivityMatrix
public void importFromStream(java.io.InputStream input) throws java.io.IOException
importFromStream
in interface CausalActivityMatrix
java.io.IOException
public void exportToFile(java.io.File file) throws java.io.IOException
exportToFile
in interface CausalActivityMatrix
java.io.IOException
public java.lang.String toHTMLString(boolean includeHTMLTags)
toHTMLString
in interface org.processmining.framework.util.HTMLToString