|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deckfour.xes.info.impl.XLogInfoImpl
public class XLogInfoImpl
This class implements a bare-bones log info summary which can be created on demand by using applications. The log info summary is based on an event classifier, which is used to identify event class abstractions.
Field Summary | |
---|---|
protected XEventClassifier |
defaultClassifier
The default event classifier for this log info instance. |
protected XAttributeInfoImpl |
eventAttributeInfo
Attribute information registry on the event level. |
protected Map<XEventClassifier,XEventClasses> |
eventClasses
Maps the event classifiers covered in this log info to their respectively created event classes. |
static XEventClassifier |
LIFECYCLE_TRANSITION_CLASSIFIER
Standard event classifier. |
protected XLog |
log
The event log which is summarized. |
protected XAttributeInfoImpl |
logAttributeInfo
Attribute information registry on the log level. |
protected XTimeBoundsImpl |
logBoundaries
Timestamp boundaries for the complete log. |
protected XAttributeInfoImpl |
metaAttributeInfo
Attribute information registry on the meta level. |
static XEventClassifier |
NAME_CLASSIFIER
Standard event classifier. |
protected int |
numberOfEvents
The total number of events in this log. |
protected int |
numberOfTraces
The number of traces in this log. |
static XEventClassifier |
RESOURCE_CLASSIFIER
Standard event classifier. |
static XEventClassifier |
STANDARD_CLASSIFIER
Default event classifier. |
protected XAttributeInfoImpl |
traceAttributeInfo
Attribute information registry on the trace level. |
protected HashMap<XTrace,XTimeBoundsImpl> |
traceBoundaries
Map of timestamp boundaries for each trace, indexed by reference to the respective trace. |
Constructor Summary | |
---|---|
XLogInfoImpl(XLog log,
XEventClassifier defaultClassifier,
Collection<XEventClassifier> classifiers)
Creates a new log summary. |
Method Summary | |
---|---|
static XLogInfo |
create(XLog log)
Creates a new log info summary with the standard event classifier. |
static XLogInfo |
create(XLog log,
XEventClassifier defaultClassifier)
Creates a new log info summary with a custom event classifier. |
static XLogInfo |
create(XLog log,
XEventClassifier defaultClassifier,
Collection<XEventClassifier> classifiers)
Creates a new log info summary with a collection of custom event classifiers. |
XAttributeInfo |
getEventAttributeInfo()
Retrieves attribute information about all attributes this log contains on the event level. |
XEventClasses |
getEventClasses()
Retrieves the event classes of the summarized log, as defined by the event classifier used for this summary. |
XEventClasses |
getEventClasses(XEventClassifier classifier)
Retrieves the event classes for a given classifier. |
Collection<XEventClassifier> |
getEventClassifiers()
Retrieves the set of event classifiers covered by this log info, i.e., for which event classes are registered in this log info instance. |
XLog |
getLog()
Retrieves the log used for this summary. |
XAttributeInfo |
getLogAttributeInfo()
Retrieves attribute information about all attributes this log contains on the log level. |
XTimeBounds |
getLogTimeBoundaries()
Retrieves the global timestamp boundaries of this log. |
XAttributeInfo |
getMetaAttributeInfo()
Retrieves attribute information about all attributes this log contains on the meta (i.e., attribute) level. |
XEventClasses |
getNameClasses()
Retrieves the event name classes of the summarized log. |
int |
getNumberOfEvents()
Retrieves the total number of events in this log. |
int |
getNumberOfTraces()
Retrieves the number of traces in this log. |
XEventClasses |
getResourceClasses()
Retrieves the resource classes of the summarized log. |
XAttributeInfo |
getTraceAttributeInfo()
Retrieves attribute information about all attributes this log contains on the trace level. |
XTimeBounds |
getTraceTimeBoundaries(XTrace trace)
Retrieves the timestamp boundaries for a specified trace. |
XEventClasses |
getTransitionClasses()
Retrieves the lifecycle transition classes of the summarized log. |
protected void |
registerAttributes(XAttributeInfoImpl attributeInfo,
XAttributable attributable)
Registers all attributes of a given attributable, i.e. |
protected void |
setup()
Creates the internal data structures of this summary on setup from the log. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.deckfour.xes.info.XLogInfo |
---|
toString |
Field Detail |
---|
public static final XEventClassifier STANDARD_CLASSIFIER
public static final XEventClassifier NAME_CLASSIFIER
public static final XEventClassifier RESOURCE_CLASSIFIER
public static final XEventClassifier LIFECYCLE_TRANSITION_CLASSIFIER
protected XLog log
protected int numberOfEvents
protected int numberOfTraces
protected Map<XEventClassifier,XEventClasses> eventClasses
protected XEventClassifier defaultClassifier
protected XTimeBoundsImpl logBoundaries
protected HashMap<XTrace,XTimeBoundsImpl> traceBoundaries
protected XAttributeInfoImpl logAttributeInfo
protected XAttributeInfoImpl traceAttributeInfo
protected XAttributeInfoImpl eventAttributeInfo
protected XAttributeInfoImpl metaAttributeInfo
Constructor Detail |
---|
public XLogInfoImpl(XLog log, XEventClassifier defaultClassifier, Collection<XEventClassifier> classifiers)
log
- The log to create a summary of.classifier
- The event classifier to be used.Method Detail |
---|
public static XLogInfo create(XLog log)
log
- The event log to create an info summary for.
public static XLogInfo create(XLog log, XEventClassifier defaultClassifier)
log
- The event log to create an info summary for.defaultClassifier
- The default event classifier to be used.
public static XLogInfo create(XLog log, XEventClassifier defaultClassifier, Collection<XEventClassifier> classifiers)
log
- The event log to create an info summary for.defaultClassifier
- The default event classifier to be used.classifiers
- A collection of additional event classifiers to
be covered by the created log info instance.
protected void setup()
protected void registerAttributes(XAttributeInfoImpl attributeInfo, XAttributable attributable)
attributeInfo
- Attribute info registry to use for registration.attributable
- Attributable whose attributes to register.public XLog getLog()
XLogInfo
getLog
in interface XLogInfo
public int getNumberOfEvents()
XLogInfo
getNumberOfEvents
in interface XLogInfo
public int getNumberOfTraces()
XLogInfo
getNumberOfTraces
in interface XLogInfo
public XEventClasses getEventClasses(XEventClassifier classifier)
XLogInfo
Note:The given event classifier must be
covered by this log info, i.e., the log info must
have been created with this classifier. Otherwise,
this method will return null
. You can
retrieve the collection of event classifiers covered
by this log info instance by calling the method
getEventClassifiers()
.
getEventClasses
in interface XLogInfo
classifier
- The classifier for which to retrieve
the event classes.
null
if the given event classifier is not covered by this
log info instance.public Collection<XEventClassifier> getEventClassifiers()
XLogInfo
getEventClassifiers
in interface XLogInfo
public XEventClasses getEventClasses()
XLogInfo
getEventClasses
in interface XLogInfo
public XEventClasses getResourceClasses()
XLogInfo
getResourceClasses
in interface XLogInfo
public XEventClasses getNameClasses()
XLogInfo
getNameClasses
in interface XLogInfo
public XEventClasses getTransitionClasses()
XLogInfo
getTransitionClasses
in interface XLogInfo
public XTimeBounds getLogTimeBoundaries()
XLogInfo
getLogTimeBoundaries
in interface XLogInfo
public XTimeBounds getTraceTimeBoundaries(XTrace trace)
XLogInfo
getTraceTimeBoundaries
in interface XLogInfo
trace
- Trace to be queried for.
public XAttributeInfo getLogAttributeInfo()
XLogInfo
getLogAttributeInfo
in interface XLogInfo
public XAttributeInfo getTraceAttributeInfo()
XLogInfo
getTraceAttributeInfo
in interface XLogInfo
public XAttributeInfo getEventAttributeInfo()
XLogInfo
getEventAttributeInfo
in interface XLogInfo
public XAttributeInfo getMetaAttributeInfo()
XLogInfo
getMetaAttributeInfo
in interface XLogInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |