|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Behavior
An interface for all behavior implementations
| Nested Class Summary | |
|---|---|
static class |
Behavior.BehaviorType
|
| Field Summary | |
|---|---|
static Behavior[] |
EMPTY_BEHAVIOR_LIST
|
| Method Summary | |
|---|---|
boolean |
assertFact(WindowNode.WindowMemory memory,
Object context,
InternalFactHandle fact,
InternalWorkingMemory workingMemory)
Makes the behavior aware of the new fact entering behavior's scope |
Object |
createContext()
Creates the context object associated with this behavior. |
void |
expireFacts(WindowNode.WindowMemory memory,
Object context,
InternalWorkingMemory workingMemory)
A callback method that allows behaviors to expire facts |
long |
getExpirationOffset()
Some behaviors might change the expiration offset for the associated fact type. |
Behavior.BehaviorType |
getType()
Returns the type of the behavior |
void |
retractFact(WindowNode.WindowMemory memory,
Object context,
InternalFactHandle fact,
InternalWorkingMemory workingMemory)
Removes a right tuple from the behavior's scope |
| Field Detail |
|---|
static final Behavior[] EMPTY_BEHAVIOR_LIST
| Method Detail |
|---|
Behavior.BehaviorType getType()
Object createContext()
boolean assertFact(WindowNode.WindowMemory memory,
Object context,
InternalFactHandle fact,
InternalWorkingMemory workingMemory)
memory - The window node memorycontext - The behavior context objectfact - The new fact entering behavior's scopeworkingMemory - The working memory session reference
void retractFact(WindowNode.WindowMemory memory,
Object context,
InternalFactHandle fact,
InternalWorkingMemory workingMemory)
memory - The window node memorycontext - The behavior context objectfact - The fact leaving the behavior's scopeworkingMemory - The working memory session reference
void expireFacts(WindowNode.WindowMemory memory,
Object context,
InternalWorkingMemory workingMemory)
memory - The window node memorycontext - The behavior context objectworkingMemory - The working memory session referencelong getExpirationOffset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||