Class XModelAlignmentExtension
- java.lang.Object
-
- org.deckfour.xes.extension.XExtension
-
- org.processmining.plugins.inductiveVisualMiner.export.XModelAlignmentExtension
-
- All Implemented Interfaces:
java.io.Serializable
public class XModelAlignmentExtension extends org.deckfour.xes.extension.XExtension- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static org.deckfour.xes.model.XAttributeListATTR_CLASSIFIERstatic org.deckfour.xes.model.XAttributeLiteralATTR_CLASSIFIER_FIELDstatic org.deckfour.xes.model.XAttributeListATTR_MODELstatic org.deckfour.xes.model.XAttributeLiteralATTR_MODEL_TYPEstatic org.deckfour.xes.model.XAttributeDiscreteATTR_MOVE_MODEL_NODEstatic org.deckfour.xes.model.XAttributeDiscreteATTR_MOVE_SOURCE_NODEstatic org.deckfour.xes.model.XAttributeLiteralATTR_MOVE_TYPEstatic java.net.URIEXTENSION_URIUnique URI of this extension.static java.lang.StringKEY_CLASSIFIERstatic java.lang.StringKEY_CLASSIFIER_FIELDstatic java.lang.StringKEY_MODELstatic java.lang.StringKEY_MODEL_TYPEKeys for the attributes.static java.lang.StringKEY_MOVE_MODEL_NODEstatic java.lang.StringKEY_MOVE_SOURCE_NODEstatic java.lang.StringKEY_MOVE_TYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassignClassifier(org.deckfour.xes.model.XLog log, java.lang.String... attributes)voidassignModel(org.deckfour.xes.model.XLog log, java.lang.String modelType, java.util.List<org.deckfour.xes.model.XAttribute> model)voidassignMoveModelNode(org.deckfour.xes.model.XEvent event, int moveModelNode)voidassignMoveSourceNode(org.deckfour.xes.model.XEvent event, int moveSourceNode)voidassignMoveType(org.deckfour.xes.model.XEvent event, java.lang.String moveType)java.lang.String[]extractClassifier(org.deckfour.xes.model.XLog log)java.util.List<org.deckfour.xes.model.XAttribute>extractModel(org.deckfour.xes.model.XLog log)java.lang.StringextractModelType(org.deckfour.xes.model.XLog log)intextractMoveModelNode(org.deckfour.xes.model.XEvent event)intextractMoveSourceNode(org.deckfour.xes.model.XEvent event)java.lang.StringextractMoveType(org.deckfour.xes.model.XEvent event)static XModelAlignmentExtensioninstance()voidremoveAttributes(org.deckfour.xes.model.XEvent event)voidremoveAttributes(org.deckfour.xes.model.XLog log)Removes the attributes that this extension defines from the log level (does not recurse onto traces or events).voidremoveAttributes(org.deckfour.xes.model.XTrace trace)Removes the attributes that this extension defines from the trace level (does not recurse onto events).
-
-
-
Field Detail
-
EXTENSION_URI
public static final java.net.URI EXTENSION_URI
Unique URI of this extension.
-
KEY_MODEL_TYPE
public static final java.lang.String KEY_MODEL_TYPE
Keys for the attributes.- See Also:
- Constant Field Values
-
KEY_MODEL
public static final java.lang.String KEY_MODEL
- See Also:
- Constant Field Values
-
KEY_CLASSIFIER
public static final java.lang.String KEY_CLASSIFIER
- See Also:
- Constant Field Values
-
KEY_CLASSIFIER_FIELD
public static final java.lang.String KEY_CLASSIFIER_FIELD
- See Also:
- Constant Field Values
-
KEY_MOVE_TYPE
public static final java.lang.String KEY_MOVE_TYPE
- See Also:
- Constant Field Values
-
KEY_MOVE_SOURCE_NODE
public static final java.lang.String KEY_MOVE_SOURCE_NODE
- See Also:
- Constant Field Values
-
KEY_MOVE_MODEL_NODE
public static final java.lang.String KEY_MOVE_MODEL_NODE
- See Also:
- Constant Field Values
-
ATTR_MODEL_TYPE
public static org.deckfour.xes.model.XAttributeLiteral ATTR_MODEL_TYPE
-
ATTR_MODEL
public static org.deckfour.xes.model.XAttributeList ATTR_MODEL
-
ATTR_CLASSIFIER
public static org.deckfour.xes.model.XAttributeList ATTR_CLASSIFIER
-
ATTR_CLASSIFIER_FIELD
public static org.deckfour.xes.model.XAttributeLiteral ATTR_CLASSIFIER_FIELD
-
ATTR_MOVE_TYPE
public static org.deckfour.xes.model.XAttributeLiteral ATTR_MOVE_TYPE
-
ATTR_MOVE_SOURCE_NODE
public static org.deckfour.xes.model.XAttributeDiscrete ATTR_MOVE_SOURCE_NODE
-
ATTR_MOVE_MODEL_NODE
public static org.deckfour.xes.model.XAttributeDiscrete ATTR_MOVE_MODEL_NODE
-
-
Method Detail
-
instance
public static XModelAlignmentExtension instance()
- Returns:
- the singleton
XAlignmentExtension.
-
assignModel
public void assignModel(org.deckfour.xes.model.XLog log, java.lang.String modelType, java.util.List<org.deckfour.xes.model.XAttribute> model)
-
extractModelType
public java.lang.String extractModelType(org.deckfour.xes.model.XLog log)
- Parameters:
log-- Returns:
- the model type, or NULL if it is not an attribute of the log.
-
extractModel
public java.util.List<org.deckfour.xes.model.XAttribute> extractModel(org.deckfour.xes.model.XLog log)
- Parameters:
log-- Returns:
- the model, or NULL if it is not an attribute of the log.
-
assignClassifier
public void assignClassifier(org.deckfour.xes.model.XLog log, java.lang.String... attributes)
-
extractClassifier
public java.lang.String[] extractClassifier(org.deckfour.xes.model.XLog log)
- Parameters:
log-- Returns:
- The classifier, or NULL if it is not an attribute of the log.
-
assignMoveType
public void assignMoveType(org.deckfour.xes.model.XEvent event, java.lang.String moveType)
-
extractMoveType
public java.lang.String extractMoveType(org.deckfour.xes.model.XEvent event)
-
assignMoveSourceNode
public void assignMoveSourceNode(org.deckfour.xes.model.XEvent event, int moveSourceNode)
-
assignMoveModelNode
public void assignMoveModelNode(org.deckfour.xes.model.XEvent event, int moveModelNode)
-
extractMoveSourceNode
public int extractMoveSourceNode(org.deckfour.xes.model.XEvent event)
- Parameters:
event-- Returns:
- The model node this move is mapped to, or Integer.MIN_VALUE if the node is not mapped.
-
extractMoveModelNode
public int extractMoveModelNode(org.deckfour.xes.model.XEvent event)
- Parameters:
event-- Returns:
- The model node this move is mapped to, or Integer.MIN_VALUE if the node is not mapped.
-
removeAttributes
public void removeAttributes(org.deckfour.xes.model.XLog log)
Removes the attributes that this extension defines from the log level (does not recurse onto traces or events).- Parameters:
log-
-
removeAttributes
public void removeAttributes(org.deckfour.xes.model.XTrace trace)
Removes the attributes that this extension defines from the trace level (does not recurse onto events).- Parameters:
trace-
-
removeAttributes
public void removeAttributes(org.deckfour.xes.model.XEvent event)
-
-