public class BehaviorManager extends Object implements Externalizable
Modifier and Type | Field and Description |
---|---|
static Behavior[] |
NO_BEHAVIORS |
Constructor and Description |
---|
BehaviorManager() |
BehaviorManager(Behavior[] behaviors) |
BehaviorManager(List<Behavior> behaviors) |
Modifier and Type | Method and Description |
---|---|
boolean |
assertFact(WindowNode.WindowMemory memory,
InternalFactHandle factHandle,
PropagationContext pctx,
InternalWorkingMemory workingMemory)
Register a newly asserted right tuple into the behaviors' context
|
Object |
createBehaviorContext()
Creates the behaviors' context
|
Behavior[] |
getBehaviors() |
void |
readExternal(ObjectInput in) |
void |
retractFact(WindowNode.WindowMemory memory,
InternalFactHandle factHandle,
PropagationContext pctx,
InternalWorkingMemory workingMemory)
Removes a newly asserted fact handle from the behaviors' context
|
void |
writeExternal(ObjectOutput out) |
public static final Behavior[] NO_BEHAVIORS
public BehaviorManager()
public BehaviorManager(Behavior[] behaviors)
behaviors
- public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public Object createBehaviorContext()
public boolean assertFact(WindowNode.WindowMemory memory, InternalFactHandle factHandle, PropagationContext pctx, InternalWorkingMemory workingMemory)
context
- factHandle
- public void retractFact(WindowNode.WindowMemory memory, InternalFactHandle factHandle, PropagationContext pctx, InternalWorkingMemory workingMemory)
behaviorContext
- factHandle
- workingMemory
- public Behavior[] getBehaviors()
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.