public class EventFactHandle extends DefaultFactHandle implements Comparable<EventFactHandle>
| Constructor and Description |
|---|
EventFactHandle() |
EventFactHandle(int id,
Object object,
long recency,
long timestamp,
long duration,
InternalWorkingMemoryEntryPoint wmEntryPoint)
Creates a new event fact handle.
|
EventFactHandle(int id,
Object object,
long recency,
long timestamp,
long duration,
InternalWorkingMemoryEntryPoint wmEntryPoint,
boolean isTraitOrTraitable) |
| Modifier and Type | Method and Description |
|---|---|
void |
addJob(JobHandle job) |
EventFactHandle |
clone() |
EventFactHandle |
cloneAndLink() |
int |
compareTo(EventFactHandle e) |
void |
decreaseActivationsCount() |
void |
decreaseOtnCount() |
long |
getActivationsCount() |
long |
getDuration()
Returns the duration of this event.
|
long |
getEndTimestamp()
Returns the end timestamp for this event.
|
protected String |
getFormatVersion() |
EventFactHandle |
getLinkedFactHandle() |
int |
getOtnCount() |
long |
getStartTimestamp()
Returns the timestamp of the occurrence of this event.
|
void |
increaseActivationsCount() |
void |
increaseOtnCount() |
void |
invalidate() |
boolean |
isEvent()
Always returns true, since the EventFactHandle is
only used for Events, and not for regular Facts
|
boolean |
isExpired() |
boolean |
isPendingRemoveFromStore() |
boolean |
isValid() |
EventFactHandle |
quickClone() |
void |
removeJob(JobHandle job) |
void |
setActivationsCount(long activationsCount) |
void |
setExpired(boolean expired) |
void |
setOtnCount(int otnCount) |
void |
setPendingRemoveFromStore(boolean pendingRemove) |
String |
toString() |
void |
unscheduleAllJobs(InternalWorkingMemory workingMemory) |
addFirstLeftTuple, addFirstRightTuple, addLastLeftTuple, addLastRightTuple, addTupleInPosition, as, clearLeftTuples, clearRightTuples, createFromExternalFormat, determineIdentityHashCode, disconnect, equals, getEntryPoint, getEqualityKey, getExternalForm, getFirstLeftTuple, getFirstRightTuple, getId, getIdentityHashCode, getLastLeftTuple, getLastRightTuple, getObject, getObjectClassName, getObjectHashCode, getRecency, getTraitType, hashCode, isDisconnected, isNegated, isTraitable, isTraiting, isTraitOrTraitable, quickCloneUpdate, removeLeftTuple, removeRightTuple, setEntryPoint, setEqualityKey, setExternalForm, setFirstLeftTuple, setFirstRightTuple, setLastLeftTuple, setLastRightTuple, setNegated, setObject, setObjectHashCode, setRecency, toExternalFormgetNext, getPrevious, nullPrevNext, setNext, setPreviouspublic EventFactHandle()
public EventFactHandle(int id,
Object object,
long recency,
long timestamp,
long duration,
InternalWorkingMemoryEntryPoint wmEntryPoint)
id - this event fact handle IDobject - the event object encapsulated in this event fact handlerecency - the recency of this event fact handletimestamp - the timestamp of the occurrence of this eventduration - the duration of this event. May be 0 (zero) in case this is a primitive event.public EventFactHandle(int id,
Object object,
long recency,
long timestamp,
long duration,
InternalWorkingMemoryEntryPoint wmEntryPoint,
boolean isTraitOrTraitable)
protected String getFormatVersion()
getFormatVersion in class DefaultFactHandlepublic String toString()
toString in class DefaultFactHandleObjectpublic boolean isEvent()
isEvent in interface InternalFactHandleisEvent in class DefaultFactHandlepublic long getStartTimestamp()
public long getDuration()
public long getEndTimestamp()
public EventFactHandle getLinkedFactHandle()
public void invalidate()
invalidate in interface InternalFactHandleinvalidate in class DefaultFactHandlepublic boolean isValid()
isValid in interface InternalFactHandleisValid in class DefaultFactHandlepublic boolean isExpired()
isExpired in interface InternalFactHandleisExpired in class DefaultFactHandlepublic void setExpired(boolean expired)
public boolean isPendingRemoveFromStore()
isPendingRemoveFromStore in interface InternalFactHandleisPendingRemoveFromStore in class DefaultFactHandlepublic void setPendingRemoveFromStore(boolean pendingRemove)
public long getActivationsCount()
public void setActivationsCount(long activationsCount)
public void increaseActivationsCount()
public void decreaseActivationsCount()
public void increaseOtnCount()
public void decreaseOtnCount()
public int getOtnCount()
public void setOtnCount(int otnCount)
public EventFactHandle clone()
clone in interface InternalFactHandleclone in class DefaultFactHandlepublic EventFactHandle quickClone()
quickClone in interface InternalFactHandlequickClone in class DefaultFactHandlepublic EventFactHandle cloneAndLink()
public int compareTo(EventFactHandle e)
compareTo in interface Comparable<EventFactHandle>public void addJob(JobHandle job)
public void removeJob(JobHandle job)
public void unscheduleAllJobs(InternalWorkingMemory workingMemory)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.