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, trimToSize
finalize, getClass, notify, notifyAll, wait, wait, wait
protected 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()
XOCLog
getGlobalEventAttributes
in interface XOCLog
public java.util.List<XAttribute> getGlobalObjectModelAttributes()
XOCLog
getGlobalObjectModelAttributes
in interface XOCLog
public java.util.List<XAttribute> getGlobalObjectRelationAttributes()
getGlobalObjectRelationAttributes
in interface XOCLog
public java.util.List<XAttribute> getGlobalObjectAttributes()
getGlobalObjectAttributes
in interface XOCLog
public java.util.List<XOCEvent> getAllEvents()
getAllEvents
in interface XOCLog
public java.util.List<java.lang.String> getEventIdList()
getEventIdList
in interface XOCLog
public java.util.List<XOCEvent> getEventsOfActivity(java.lang.String activityNameInput)
getEventsOfActivity
in interface XOCLog
public java.util.Map<java.lang.String,XOCEvent> getIdVSEventMap()
getIdVSEventMap
in interface XOCLog
public XOCEvent getLastEvent()
getLastEvent
in interface XOCLog
public java.util.List<XOCEvent> createStartEvents()
createStartEvents
in interface XOCLog
public java.util.Map<java.lang.String,java.lang.Integer> createStartActivityVSNumMap()
createStartActivityVSNumMap
in interface XOCLog
public java.util.List<java.lang.String> createStartActivityNames()
createStartActivityNames
in interface XOCLog
public java.util.List<XOCEvent> createEndEvents()
createEndEvents
in interface XOCLog
public java.util.Map<java.lang.String,java.lang.Integer> createEndActivityVSNumMap()
createEndActivityVSNumMap
in interface XOCLog
public java.util.List<java.lang.String> createEndActivityNames()
createEndActivityNames
in interface XOCLog
public java.util.Map<java.lang.String,java.lang.Integer> createActivityVSNumMap()
createActivityVSNumMap
in interface XOCLog
public java.util.List<java.lang.String> createActivityNames()
createActivityNames
in interface XOCLog
public java.util.List<java.lang.String> generateActivityNameList()
generateActivityNameList
in interface XOCLog
public java.util.List<java.lang.String> getClassNames()
XOCLog
getClassNames
in interface XOCLog
public java.util.List<java.lang.String> generateClassNameList()
generateClassNameList
in interface XOCLog
public java.util.List<java.lang.String> getClassNameList()
getClassNameList
in interface XOCLog
public java.util.List<java.lang.String> getResources()
getResources
in interface XOCLog
public java.util.List<XOCObject> getRepeatableObjects()
getRepeatableObjects
in interface XOCLog
public java.util.List<XOCRRelation> getReferenceRelations()
getReferenceRelations
in interface XOCLog
public XOCObject getSourceObjectOfObjectRelation(XOCObjectModel objectModel, XOCORelation objectRelation)
getSourceObjectOfObjectRelation
in interface XOCLog
public XOCObject getTargetObjectOfObjectRelation(XOCObjectModel objectModel, XOCORelation objectRelation)
getTargetObjectOfObjectRelation
in interface XOCLog
public void setAllEvents(java.util.List<XOCEvent> allEvents)
setAllEvents
in interface XOCLog
public XAttributeMap getAttributes()
XAttributable
getAttributes
in interface XAttributable
public void setAttributes(XAttributeMap attributes)
XAttributable
setAttributes
in interface XAttributable
attributes
- A map of attributes.public boolean hasAttributes()
XAttributable
XAttributable.getAttributes()
in certain situations.hasAttributes
in interface XAttributable
public java.util.Set<XExtension> getExtensions()
XAttributable
getExtensions
in interface XAttributable
public boolean add(XOCEvent event)
public java.util.List<XOCObject> getAllObjectVersions()
getAllObjectVersions
in interface XOCLog
public java.util.List<XOCObject> getIndirectRelatedObjectsForOneEvent(XOCEvent event)
getIndirectRelatedObjectsForOneEvent
in interface XOCLog
public java.util.List<XOCObject> getAllRelatedObjectsForOneEvent(XOCEvent event)
getAllRelatedObjectsForOneEvent
in interface XOCLog
public java.util.List<XOCEvent> getRelatedEventsForOneEventByPath(XOCEvent event, java.lang.String[] path, java.lang.String targetActivity)
getRelatedEventsForOneEventByPath
in interface XOCLog
event
- path
- targetActivity
- public java.util.List<XOCEvent> getRelatedEventsForOneObjectByPath(XOCObject object, java.lang.String[] path, java.lang.String targetActivity)
getRelatedEventsForOneObjectByPath
in interface XOCLog
object
- path
- targetActivity
- public java.util.List<XOCEvent> getRelatedEventsForOneEvent(XOCEvent event)
getRelatedEventsForOneEvent
in interface XOCLog
public java.util.List<XOCEvent> getRelatedEventsForOneEventA(XOCEvent event, java.lang.String classNodeName)
getRelatedEventsForOneEventA
in interface XOCLog
public java.util.List<XOCEvent> getRelatedEventsForOneEventB(XOCEvent event, java.lang.String classNodeNameX, java.lang.String classNodeNameY)
getRelatedEventsForOneEventB
in interface XOCLog
public java.util.List<XOCEvent> createEventsForOneActivity(java.lang.String activity)
createEventsForOneActivity
in interface XOCLog
public static void main(java.lang.String[] str) throws java.lang.Exception
java.lang.Exception
public XOCObjectModel createCompleteObjectModel(XOCEvent event)
createCompleteObjectModel
in interface XOCLog
event
- public XOCObjectModel createObjectModelUpdate(XOCEvent event)
createObjectModelUpdate
in interface XOCLog
event
- public java.util.Map<java.lang.String,XOCObject> getIdVSObjectMap()
getIdVSObjectMap
in interface XOCLog
public java.util.Map<java.lang.String,XOCORelation> getIdVSObjectRelationMap()
getIdVSObjectRelationMap
in interface XOCLog
public void setIdVSObjectMap(java.util.Map<java.lang.String,XOCObject> idVSObject)
setIdVSObjectMap
in interface XOCLog
public void setIdVSObjectRelationMap(java.util.Map<java.lang.String,XOCORelation> idVSObjectRelation)
setIdVSObjectRelationMap
in interface XOCLog
public java.util.List<XOCObject> getObjectList()
XOCLog
getObjectList
in interface XOCLog
public java.util.List<XOCORelation> getObjectRelationList()
XOCLog
getObjectRelationList
in interface XOCLog
public java.util.List<XOCEvent> sortEventList(java.util.List<XOCEvent> eventList)
sortEventList
in interface XOCLog
eventList
-