public class WorkshopModel
extends java.lang.Object
implements org.processmining.framework.util.HTMLToString
| Constructor and Description |
|---|
WorkshopModel(java.io.InputStream input)
Creates a workshop model from the given CSV stream.
|
WorkshopModel(org.deckfour.xes.classification.XEventClasses eventClasses)
Creates an empty workshop model for the given collection of event
classes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDirectSuccession(org.deckfour.xes.classification.XEventClass fromEventClass,
org.deckfour.xes.classification.XEventClass toEventClass,
int cardinality)
Adds as many direct successions from the given source event class to the
given target event class as the given cardinality dictates.
|
void |
exportToFile(java.io.File file)
Exports a workshop model to a given CSV file.
|
int |
getDirectSuccession(org.deckfour.xes.classification.XEventClass fromEventClass,
org.deckfour.xes.classification.XEventClass toEventClass)
Gets the cardinality of the direct succession from a given source event
class to a given target event class.
|
java.util.Set<org.deckfour.xes.classification.XEventClass> |
getEventClasses()
Returns the event classes in the workshop model.
|
int |
getMaxCardinality()
Gets the maximal cardinality found in the model.
|
int |
getMinCardinality()
Gets the minimal (non-zero) cardinality found in the model.
|
java.lang.String |
toHTMLString(boolean includeHTMLTags)
Creates an HTML formatted string from the workshop model.
|
public WorkshopModel(java.io.InputStream input)
throws java.io.IOException
input - The given CSV stream. The first row contains the target event
classes. The first column contains the source event classes.
Other fields contain cardinalities from the source event class
to the target event class. If no direct succession relation is
there fro the former to the latter, this field should contain
0.java.io.IOExceptionpublic WorkshopModel(org.deckfour.xes.classification.XEventClasses eventClasses)
eventClasses - The given collection of event classes.public void addDirectSuccession(org.deckfour.xes.classification.XEventClass fromEventClass,
org.deckfour.xes.classification.XEventClass toEventClass,
int cardinality)
fromEventClass - The given source event class.toEventClass - The given target event class.cardinality - The given cardinality.public int getDirectSuccession(org.deckfour.xes.classification.XEventClass fromEventClass,
org.deckfour.xes.classification.XEventClass toEventClass)
fromEventClass - The given source event class.toEventClass - The given target event class.public java.util.Set<org.deckfour.xes.classification.XEventClass> getEventClasses()
public void exportToFile(java.io.File file)
throws java.io.IOException
file - The given CSV file.java.io.IOExceptionpublic java.lang.String toHTMLString(boolean includeHTMLTags)
toHTMLString in interface org.processmining.framework.util.HTMLToStringincludeHTMLTags - Whether to include the and tags.public int getMinCardinality()
public int getMaxCardinality()