public class LogSkeleton
extends java.lang.Object
implements org.processmining.framework.util.HTMLToString
Constructor and Description |
---|
LogSkeleton() |
LogSkeleton(LogSkeletonCount countModel) |
Modifier and Type | Method and Description |
---|---|
void |
addEquivalenceClass(java.util.Collection<java.lang.String> activities)
Adds the provided activities as an equivalence for the current noise level.
|
void |
addEquivalenceClass(int noiseLevel,
java.util.Collection<java.lang.String> activities)
Adds the provided activities as an equivalence for the provided noise level.
|
void |
addPrePost(java.lang.String activity,
java.util.Collection<java.lang.String> pre,
java.util.Collection<java.lang.String> post)
Registers that the provided activity has the provided preset of activities
and the provided postset of activities.
|
void |
addSameCount(java.util.Collection<java.lang.String> activities)
Deprecated.
|
void |
addSameCount(int noiseLevel,
java.util.Collection<java.lang.String> activities)
Deprecated.
|
java.util.Collection<Violation> |
check(org.deckfour.xes.model.XTrace trace,
LogSkeletonCount model,
CheckerConfiguration configuration)
Checks whether the provided trace and the provided count model violate this
log skeleton or this count model, using the provided configuration.
|
void |
cleanPrePost()
Restore any removed activities in the relations.
|
org.processmining.plugins.graphviz.dot.Dot |
createGraph(BrowserConfiguration configuration)
Returns a dot visualization for the provided configuration.
|
org.processmining.plugins.graphviz.dot.Dot |
createGraph(LogSkeletonRelation relation)
Returns a dot visualization for all activities and the provided relation
only.
|
org.processmining.plugins.graphviz.dot.Dot |
createGraph(java.util.Set<LogSkeletonRelation> relations)
Returns a dot visualization for all activities and the provided relations
only.
|
void |
exportToFile(com.csvreader.CsvWriter writer)
Exports the log skeleton to a file.
|
java.util.Collection<java.lang.String> |
getActivities()
Returns a collection containing all activities.
|
java.util.Collection<java.lang.String> |
getEquivalenceClass(java.lang.String activity)
Returns the equivalence class for the provided activity for the current
threshold.
|
java.util.Collection<java.lang.String> |
getEquivalenceClass(java.lang.String activity,
java.util.Collection<java.lang.String> activities)
Returns the intersection of the provided set of activities and the
equivalence class for the provided activity for the current threshold.
|
java.lang.String |
getLabel()
Returns the label for this log skeleton.
|
java.util.Collection<java.lang.String> |
getSameCounts(java.lang.String activity)
Deprecated.
|
java.util.Collection<java.lang.String> |
getSameCounts(java.lang.String activity,
java.util.Collection<java.lang.String> activities)
Deprecated.
|
boolean |
hasManyNotCoExistenceArcs(boolean isUseEquivalenceClass)
Returns whether the log skeleton contains more than 100 Not Co-Existence
relations to show.
|
void |
importFromStream(com.csvreader.CsvReader reader) |
void |
setBoundary(java.util.Set<java.lang.String> boundary)
Sets the set of boundary activities (to be included in the legend).
|
void |
setEquivalenceThreshold(int equivalenceThreshold)
Sets the equivalence threshold to the provided threshold.
|
void |
setForbidden(java.util.Set<java.lang.String> forbidden)
Sets the set of forbidden activities (to be included in the legend).
|
void |
setHorizon(int horizon) |
void |
setLabel(java.lang.String label)
Sets the label for this log skeleton (to be included in the legend and in new
windows showing log skeletons).
|
void |
setNotCoExistenceThreshold(int notCoOccurencethreshold)
Sets the not-co-existence threshold to the provided threshold.
|
void |
setPrecedenceThreshold(int precedenceThreshold)
Sets the precedence threshold to the provided threshold.
|
void |
setRequired(java.util.Set<java.lang.String> required)
Sets the set of required activities (to be included in the legend).
|
void |
setResponseThreshold(int responseThreshold)
Sets the response threshold to the provided threshold.
|
void |
setSplitters(java.util.List<java.util.List<java.lang.String>> splitters)
Sets the set of splitters (to be included in the legend).
|
java.lang.String |
toHTMLString(boolean includeHTMLTags)
Returns the log skeleton as an HTML string.
|
org.processmining.plugins.graphviz.dot.Dot |
visualize(BrowserConfiguration configuration)
Returns a dot visualization of the log skeleton, using the provided
configuration.
|
public LogSkeleton()
public LogSkeleton(LogSkeletonCount countModel)
@Deprecated public void addSameCount(java.util.Collection<java.lang.String> activities)
public void addEquivalenceClass(java.util.Collection<java.lang.String> activities)
activities
- The provided activities@Deprecated public void addSameCount(int noiseLevel, java.util.Collection<java.lang.String> activities)
public void addEquivalenceClass(int noiseLevel, java.util.Collection<java.lang.String> activities)
noiseLevel
- The provided noise level.activities
- The provided activities.@Deprecated public java.util.Collection<java.lang.String> getSameCounts(java.lang.String activity)
public java.util.Collection<java.lang.String> getEquivalenceClass(java.lang.String activity)
activity
- The provided activity.@Deprecated public java.util.Collection<java.lang.String> getSameCounts(java.lang.String activity, java.util.Collection<java.lang.String> activities)
public java.util.Collection<java.lang.String> getEquivalenceClass(java.lang.String activity, java.util.Collection<java.lang.String> activities)
activity
- The provided activity.activities
- The provided activities.public void addPrePost(java.lang.String activity, java.util.Collection<java.lang.String> pre, java.util.Collection<java.lang.String> post)
activity
- The provided activity.pre
- The provided preset of activities. These activities occur before
the provided activity in the trace.post
- The provided postset of activities. These activities occur after
the provided activity in the trace.public void cleanPrePost()
public java.util.Collection<Violation> check(org.deckfour.xes.model.XTrace trace, LogSkeletonCount model, CheckerConfiguration configuration)
trace
- The provided trace.model
- The provided count model.configuration
- The provided configuration.public java.lang.String toHTMLString(boolean includeHTMLTags)
toHTMLString
in interface org.processmining.framework.util.HTMLToString
public org.processmining.plugins.graphviz.dot.Dot visualize(BrowserConfiguration configuration)
configuration
- The provided configuration.public org.processmining.plugins.graphviz.dot.Dot createGraph(LogSkeletonRelation relation)
relation
- The provided relation.public org.processmining.plugins.graphviz.dot.Dot createGraph(java.util.Set<LogSkeletonRelation> relations)
relations
- The provided relations.public org.processmining.plugins.graphviz.dot.Dot createGraph(BrowserConfiguration configuration)
configuration
- The provided configuration.public java.util.Collection<java.lang.String> getActivities()
public void setRequired(java.util.Set<java.lang.String> required)
required
- The set of required activities.public void setForbidden(java.util.Set<java.lang.String> forbidden)
forbidden
- The set of forbidden activities.public void setBoundary(java.util.Set<java.lang.String> boundary)
forbidden
- The set of forbidden activities.public void setSplitters(java.util.List<java.util.List<java.lang.String>> splitters)
splitters
- The set of splitters.public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- public void exportToFile(com.csvreader.CsvWriter writer) throws java.io.IOException
writer
- The write to use when writing to the file.java.io.IOException
public void importFromStream(com.csvreader.CsvReader reader) throws java.io.IOException
java.io.IOException
public void setPrecedenceThreshold(int precedenceThreshold)
precedenceThreshold
- The provided threshold.public void setResponseThreshold(int responseThreshold)
responseThreshold
- The provided threshold.public void setNotCoExistenceThreshold(int notCoOccurencethreshold)
notCoOccurencethreshold
- The provided threshold.public boolean hasManyNotCoExistenceArcs(boolean isUseEquivalenceClass)
isUseEquivalenceClass
- Whether the Not Co-Existence relation is restricted to the
representatives of the Equivalence relation.public void setEquivalenceThreshold(int equivalenceThreshold)
equivalenceThreshold
- The provided threshold.public void setHorizon(int horizon)