public interface XOCObject extends MyOriginalElement, XOCElement
Modifier and Type | Method and Description |
---|---|
void |
addXOCAttribute(java.lang.String key,
java.lang.String value,
int eventOrderNum,
java.lang.String logFormat)
add an XOC attribute (key, value, event order number, i.e., moment) into the corresponding map
|
java.lang.Object |
clone() |
XAttributeMap |
createUpdatedAttributeMap(XOCEvent event)
create the updated attribute map through comparing values of the input event with values of its previous event;
|
void |
endXOCAttribute(java.lang.String key,
int eventOrderNum,
java.lang.String logFormat)
end an XOC attribute, i.e., adding the ending event order number in the last value version corresponding to the input key
|
java.util.Map<java.lang.Integer,java.lang.String> |
getEventOrderNumVSObjectStateMap()
get the map between event order number and object state;
if one event number is not in the map, it means (1) the object is not alive (after delete && before add if any), or
(2) remain the same (state value: remain) after add or update && before delete (if any)
|
java.util.List<IntegerPair> |
getLifecyclePeriodList()
get the lifecycle period list of one object;
each period consists of two values: start event order number and end event order number;
the object still (maybe last) observed in the object model of the end event;
|
java.lang.String |
getName()
Returns the id of the event
|
XOCEvent |
getReferenceEvent()
get the event when the object is first referred to
|
java.util.List<XOCEvent> |
getRelatedEventList() |
java.util.List<java.lang.String> |
getRelatedObjectIdList() |
java.util.List<XOCORelation> |
getRelatedObjectRelationList() |
java.util.Map<java.lang.String,XOCAttribute> |
getXOCAttributes() |
boolean |
isAddedAtEvent(XOCEvent event)
check if the object is born at the moment of input event based on the life cycle period list
if one object is alive at current event and dead at previous event, the object is added at current event
|
boolean |
isAliveAtEvent(XOCEvent event)
check if the object is alive at the moment of input event based on the life cycle period list
|
boolean |
isAliveAtEventOrderNum(int inputEventOrderNum)
check if the object is alive at the moment of input event order number based on the life cycle period list
|
boolean |
isAttributesEqual(XOCObject object) |
boolean |
isUpdatedAtEvent(XOCEvent event)
check if the object is updated at the moment of input event based on the life cycle period list
if one object is alive and has different attributes at previous and current events, the object is updated
|
XOCObject |
minusAttributeOverlap(XOCObject object) |
XOCObject |
plusAttributes(XOCObject object) |
void |
setName(java.lang.String name) |
void |
setReferenceEvent(XOCEvent observationEvent) |
void |
setXOCAttributes(java.util.Map<java.lang.String,XOCAttribute> attributeVersionMap) |
getCorrespondingCell, setCorrespondingCell
getAttributes, getExtensions, hasAttributes, setAttributes
java.lang.String getName()
XOCEvent getReferenceEvent()
java.util.List<XOCEvent> getRelatedEventList()
java.util.List<java.lang.String> getRelatedObjectIdList()
java.util.List<XOCORelation> getRelatedObjectRelationList()
void setName(java.lang.String name)
void setReferenceEvent(XOCEvent observationEvent)
java.lang.Object clone()
boolean isAttributesEqual(XOCObject object)
java.util.Map<java.lang.String,XOCAttribute> getXOCAttributes()
void setXOCAttributes(java.util.Map<java.lang.String,XOCAttribute> attributeVersionMap)
void addXOCAttribute(java.lang.String key, java.lang.String value, int eventOrderNum, java.lang.String logFormat)
key
- value
- eventOrderNum
- logFormat
- void endXOCAttribute(java.lang.String key, int eventOrderNum, java.lang.String logFormat)
key
- eventOrderNum
- logFormat
- java.util.List<IntegerPair> getLifecyclePeriodList()
boolean isAliveAtEvent(XOCEvent event)
event
- boolean isAliveAtEventOrderNum(int inputEventOrderNum)
event
- boolean isUpdatedAtEvent(XOCEvent event)
event
- boolean isAddedAtEvent(XOCEvent event)
event
- java.util.Map<java.lang.Integer,java.lang.String> getEventOrderNumVSObjectStateMap()
XAttributeMap createUpdatedAttributeMap(XOCEvent event)
event
-