|
||||||||||
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 |
assertRightTuple(Object context,
RightTuple tuple,
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 |
expireTuples(Object context,
InternalWorkingMemory workingMemory)
A callback method that allows behaviors to expire tuples |
long |
getExpirationOffset()
Some behaviors might change the expiration offset for the associated fact type. |
Behavior.BehaviorType |
getType()
Returns the type of the behavior |
void |
retractRightTuple(Object context,
RightTuple rightTuple,
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 assertRightTuple(Object context, RightTuple tuple, InternalWorkingMemory workingMemory)
context
- The behavior context objecttuple
- The new fact entering behavior's scopeworkingMemory
- The working memory session reference
void retractRightTuple(Object context, RightTuple rightTuple, InternalWorkingMemory workingMemory)
context
- The behavior context objectrightTuple
- The tuple leaving the behavior's scopeworkingMemory
- The working memory session referencevoid expireTuples(Object context, InternalWorkingMemory workingMemory)
context
- 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 |