|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.common.DefaultFactHandle
org.drools.common.EventFactHandle
public class EventFactHandle
| Constructor Summary | |
|---|---|
EventFactHandle()
|
|
EventFactHandle(int id,
Object object,
long recency,
long timestamp,
long duration,
org.drools.runtime.rule.WorkingMemoryEntryPoint wmEntryPoint)
Creates a new event fact handle. |
|
EventFactHandle(int id,
Object object,
long recency,
long timestamp,
long duration,
org.drools.runtime.rule.WorkingMemoryEntryPoint wmEntryPoint,
boolean isTraitOrTraitable)
Creates a new event fact handle. |
|
| Method Summary | |
|---|---|
void |
addFirstWindowTupleList(WindowTupleList window)
|
void |
addLastWindowTupleList(WindowTupleList window)
|
EventFactHandle |
clone()
|
int |
compareTo(EventFactHandle e)
|
void |
decPendingActions()
|
void |
decreaseActivationsCount()
|
long |
getActivationsCount()
|
long |
getDuration()
Returns the duration of this event. |
long |
getEndTimestamp()
Returns the end timestamp for this event. |
long |
getStartTimestamp()
Returns the timestamp of the occurrence of this event. |
boolean |
hasPendingActions()
|
void |
incPendingActions()
|
void |
increaseActivationsCount()
|
boolean |
isEvent()
Always returns true, since the EventFactHandle is only used for Events, and not for regular Facts |
boolean |
isExpired()
|
void |
removeWindowTupleList(WindowTupleList window)
|
void |
setActivationsCount(long activationsCount)
|
void |
setExpired(boolean expired)
|
String |
toExternalForm()
format_version:id:identity:hashcode:recency |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EventFactHandle()
public EventFactHandle(int id,
Object object,
long recency,
long timestamp,
long duration,
org.drools.runtime.rule.WorkingMemoryEntryPoint 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,
org.drools.runtime.rule.WorkingMemoryEntryPoint wmEntryPoint,
boolean isTraitOrTraitable)
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.| Method Detail |
|---|
public String toExternalForm()
DefaultFactHandle
toExternalForm in interface InternalFactHandletoExternalForm in interface org.drools.runtime.rule.FactHandletoExternalForm in class DefaultFactHandle1: is used for EventFactHandlepublic String toString()
toString in class DefaultFactHandleObjectpublic boolean isEvent()
isEvent in interface InternalFactHandleisEvent in class DefaultFactHandlepublic long getStartTimestamp()
public long getDuration()
public long getEndTimestamp()
public boolean isExpired()
public void setExpired(boolean expired)
public long getActivationsCount()
public void setActivationsCount(long activationsCount)
public void increaseActivationsCount()
public void decreaseActivationsCount()
public void addFirstWindowTupleList(WindowTupleList window)
public void addLastWindowTupleList(WindowTupleList window)
public void removeWindowTupleList(WindowTupleList window)
public EventFactHandle clone()
clone in interface InternalFactHandleclone in class DefaultFactHandlepublic int compareTo(EventFactHandle e)
compareTo in interface Comparable<EventFactHandle>public boolean hasPendingActions()
public void incPendingActions()
public void decPendingActions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||