public class XOCLogImpl extends java.util.ArrayList<XOCEvent> implements XOCLog
| Modifier and Type | Field and Description |
|---|---|
protected XFactory |
factory |
protected FilterFunction |
filter |
| Constructor and Description |
|---|
XOCLogImpl()
Creates a new log.
|
XOCLogImpl(XAttributeMap attributeMap) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(XOCEvent event) |
java.lang.Object |
clone() |
java.util.List<java.lang.String> |
createActivityNames() |
java.util.Map<java.lang.String,java.lang.Integer> |
createActivityVSNumMap() |
XOCObjectModel |
createCompleteObjectModel(XOCEvent event)
create the complete object model for one input event and
fill it into the object model parameter
|
java.util.List<java.lang.String> |
createEndActivityNames() |
java.util.Map<java.lang.String,java.lang.Integer> |
createEndActivityVSNumMap() |
java.util.List<XOCEvent> |
createEndEvents() |
java.util.List<XOCEvent> |
createEventsForOneActivity(java.lang.String activity) |
XOCObjectModel |
createObjectModelUpdate(XOCEvent event)
create the updated parts (added objects and updated objects) of the object model for one input event
|
java.util.List<java.lang.String> |
createStartActivityNames() |
java.util.Map<java.lang.String,java.lang.Integer> |
createStartActivityVSNumMap() |
java.util.List<XOCEvent> |
createStartEvents() |
java.util.List<java.lang.String> |
generateActivityNameList() |
java.util.List<java.lang.String> |
generateClassNameList()
generate the list of class names
based on the object model of the last event
|
java.util.List<XOCEvent> |
getAllEvents() |
java.util.List<XOCObject> |
getAllObjectVersions() |
java.util.List<XOCObject> |
getAllRelatedObjectsForOneEvent(XOCEvent event)
get all objects connected to related objects of an event + related objects of an event
|
XAttributeMap |
getAttributes()
Retrieves the attributes set for this element.
|
java.util.List<java.lang.String> |
getClassNameList()
get the list of class names after generating
(should be used after executing the generateClassNameList() function,
otherwise, the list is of size 0)
|
java.util.List<java.lang.String> |
getClassNames()
generate and get the list of class names;
it is time-consuming when it is called multiple times
|
java.util.List<java.lang.String> |
getEventIdList() |
java.util.List<XOCEvent> |
getEventsOfActivity(java.lang.String activityNameInput)
get all events of one activity.
|
java.util.Set<XExtension> |
getExtensions()
Retrieves the extensions used by this element, i.e.
|
java.util.List<XAttribute> |
getGlobalEventAttributes()
This method returns a list of attributes which are global for all traces,
i.e.
|
java.util.List<XAttribute> |
getGlobalObjectAttributes() |
java.util.List<XAttribute> |
getGlobalObjectModelAttributes()
This method returns a list of attributes which are global for all events,
i.e.
|
java.util.List<XAttribute> |
getGlobalObjectRelationAttributes() |
java.util.Map<java.lang.String,XOCEvent> |
getIdVSEventMap() |
java.util.Map<java.lang.String,XOCObject> |
getIdVSObjectMap() |
java.util.Map<java.lang.String,XOCORelation> |
getIdVSObjectRelationMap() |
java.util.List<XOCObject> |
getIndirectRelatedObjectsForOneEvent(XOCEvent event) |
XOCEvent |
getLastEvent() |
java.util.List<XOCObject> |
getObjectList()
get all objects (maybe only containing object id)
|
java.util.List<XOCORelation> |
getObjectRelationList()
get all object relations
|
java.util.List<XOCRRelation> |
getReferenceRelations() |
java.util.List<XOCEvent> |
getRelatedEventsForOneEvent(XOCEvent event) |
java.util.List<XOCEvent> |
getRelatedEventsForOneEventA(XOCEvent event,
java.lang.String classNodeName) |
java.util.List<XOCEvent> |
getRelatedEventsForOneEventB(XOCEvent event,
java.lang.String classNodeNameX,
java.lang.String classNodeNameY) |
java.util.List<XOCEvent> |
getRelatedEventsForOneEventByPath(XOCEvent event,
java.lang.String[] path,
java.lang.String targetActivity)
get target events correlated to an input event by a path (an array of class names)
|
java.util.List<XOCEvent> |
getRelatedEventsForOneObjectByPath(XOCObject object,
java.lang.String[] path,
java.lang.String targetActivity)
get target events correlated to an input object by a path (an array of class names);
the first class in the path is the class of the input object;
|
java.util.List<XOCObject> |
getRepeatableObjects() |
java.util.List<java.lang.String> |
getResources() |
XOCObject |
getSourceObjectOfObjectRelation(XOCObjectModel objectModel,
XOCORelation objectRelation) |
XOCObject |
getTargetObjectOfObjectRelation(XOCObjectModel objectModel,
XOCORelation objectRelation) |
boolean |
hasAttributes()
Checks for the existence of attributes.
|
static void |
main(java.lang.String[] str) |
void |
setAllEvents(java.util.List<XOCEvent> allEvents) |
void |
setAttributes(XAttributeMap attributes)
Sets the map of attributes for this element.
|
void |
setIdVSObjectMap(java.util.Map<java.lang.String,XOCObject> idVSObject) |
void |
setIdVSObjectRelationMap(java.util.Map<java.lang.String,XOCORelation> idVSObjectRelation) |
java.util.List<XOCEvent> |
sortEventList(java.util.List<XOCEvent> eventList)
sort an input list of events based on their orders in the event log
|
add, addAll, addAll, clear, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizefinalize, getClass, notify, notifyAll, wait, wait, waitprotected XFactory factory
protected FilterFunction filter
public XOCLogImpl()
attributeMap - The attribute map used to store this
log's attributes.public XOCLogImpl(XAttributeMap attributeMap)
public java.lang.Object clone()
public java.util.List<XAttribute> getGlobalEventAttributes()
XOCLoggetGlobalEventAttributes in interface XOCLogpublic java.util.List<XAttribute> getGlobalObjectModelAttributes()
XOCLoggetGlobalObjectModelAttributes in interface XOCLogpublic java.util.List<XAttribute> getGlobalObjectRelationAttributes()
getGlobalObjectRelationAttributes in interface XOCLogpublic java.util.List<XAttribute> getGlobalObjectAttributes()
getGlobalObjectAttributes in interface XOCLogpublic java.util.List<XOCEvent> getAllEvents()
getAllEvents in interface XOCLogpublic java.util.List<java.lang.String> getEventIdList()
getEventIdList in interface XOCLogpublic java.util.List<XOCEvent> getEventsOfActivity(java.lang.String activityNameInput)
getEventsOfActivity in interface XOCLogpublic java.util.Map<java.lang.String,XOCEvent> getIdVSEventMap()
getIdVSEventMap in interface XOCLogpublic XOCEvent getLastEvent()
getLastEvent in interface XOCLogpublic java.util.List<XOCEvent> createStartEvents()
createStartEvents in interface XOCLogpublic java.util.Map<java.lang.String,java.lang.Integer> createStartActivityVSNumMap()
createStartActivityVSNumMap in interface XOCLogpublic java.util.List<java.lang.String> createStartActivityNames()
createStartActivityNames in interface XOCLogpublic java.util.List<XOCEvent> createEndEvents()
createEndEvents in interface XOCLogpublic java.util.Map<java.lang.String,java.lang.Integer> createEndActivityVSNumMap()
createEndActivityVSNumMap in interface XOCLogpublic java.util.List<java.lang.String> createEndActivityNames()
createEndActivityNames in interface XOCLogpublic java.util.Map<java.lang.String,java.lang.Integer> createActivityVSNumMap()
createActivityVSNumMap in interface XOCLogpublic java.util.List<java.lang.String> createActivityNames()
createActivityNames in interface XOCLogpublic java.util.List<java.lang.String> generateActivityNameList()
generateActivityNameList in interface XOCLogpublic java.util.List<java.lang.String> getClassNames()
XOCLoggetClassNames in interface XOCLogpublic java.util.List<java.lang.String> generateClassNameList()
generateClassNameList in interface XOCLogpublic java.util.List<java.lang.String> getClassNameList()
getClassNameList in interface XOCLogpublic java.util.List<java.lang.String> getResources()
getResources in interface XOCLogpublic java.util.List<XOCObject> getRepeatableObjects()
getRepeatableObjects in interface XOCLogpublic java.util.List<XOCRRelation> getReferenceRelations()
getReferenceRelations in interface XOCLogpublic XOCObject getSourceObjectOfObjectRelation(XOCObjectModel objectModel, XOCORelation objectRelation)
getSourceObjectOfObjectRelation in interface XOCLogpublic XOCObject getTargetObjectOfObjectRelation(XOCObjectModel objectModel, XOCORelation objectRelation)
getTargetObjectOfObjectRelation in interface XOCLogpublic void setAllEvents(java.util.List<XOCEvent> allEvents)
setAllEvents in interface XOCLogpublic XAttributeMap getAttributes()
XAttributablegetAttributes in interface XAttributablepublic void setAttributes(XAttributeMap attributes)
XAttributablesetAttributes in interface XAttributableattributes - A map of attributes.public boolean hasAttributes()
XAttributableXAttributable.getAttributes() in certain situations.hasAttributes in interface XAttributablepublic java.util.Set<XExtension> getExtensions()
XAttributablegetExtensions in interface XAttributablepublic boolean add(XOCEvent event)
public java.util.List<XOCObject> getAllObjectVersions()
getAllObjectVersions in interface XOCLogpublic java.util.List<XOCObject> getIndirectRelatedObjectsForOneEvent(XOCEvent event)
getIndirectRelatedObjectsForOneEvent in interface XOCLogpublic java.util.List<XOCObject> getAllRelatedObjectsForOneEvent(XOCEvent event)
getAllRelatedObjectsForOneEvent in interface XOCLogpublic java.util.List<XOCEvent> getRelatedEventsForOneEventByPath(XOCEvent event, java.lang.String[] path, java.lang.String targetActivity)
getRelatedEventsForOneEventByPath in interface XOCLogevent - path - targetActivity - public java.util.List<XOCEvent> getRelatedEventsForOneObjectByPath(XOCObject object, java.lang.String[] path, java.lang.String targetActivity)
getRelatedEventsForOneObjectByPath in interface XOCLogobject - path - targetActivity - public java.util.List<XOCEvent> getRelatedEventsForOneEvent(XOCEvent event)
getRelatedEventsForOneEvent in interface XOCLogpublic java.util.List<XOCEvent> getRelatedEventsForOneEventA(XOCEvent event, java.lang.String classNodeName)
getRelatedEventsForOneEventA in interface XOCLogpublic java.util.List<XOCEvent> getRelatedEventsForOneEventB(XOCEvent event, java.lang.String classNodeNameX, java.lang.String classNodeNameY)
getRelatedEventsForOneEventB in interface XOCLogpublic java.util.List<XOCEvent> createEventsForOneActivity(java.lang.String activity)
createEventsForOneActivity in interface XOCLogpublic static void main(java.lang.String[] str)
throws java.lang.Exception
java.lang.Exceptionpublic XOCObjectModel createCompleteObjectModel(XOCEvent event)
createCompleteObjectModel in interface XOCLogevent - public XOCObjectModel createObjectModelUpdate(XOCEvent event)
createObjectModelUpdate in interface XOCLogevent - public java.util.Map<java.lang.String,XOCObject> getIdVSObjectMap()
getIdVSObjectMap in interface XOCLogpublic java.util.Map<java.lang.String,XOCORelation> getIdVSObjectRelationMap()
getIdVSObjectRelationMap in interface XOCLogpublic void setIdVSObjectMap(java.util.Map<java.lang.String,XOCObject> idVSObject)
setIdVSObjectMap in interface XOCLogpublic void setIdVSObjectRelationMap(java.util.Map<java.lang.String,XOCORelation> idVSObjectRelation)
setIdVSObjectRelationMap in interface XOCLogpublic java.util.List<XOCObject> getObjectList()
XOCLoggetObjectList in interface XOCLogpublic java.util.List<XOCORelation> getObjectRelationList()
XOCLoggetObjectRelationList in interface XOCLogpublic java.util.List<XOCEvent> sortEventList(java.util.List<XOCEvent> eventList)
sortEventList in interface XOCLogeventList -