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(Object behaviorContext,
InternalFactHandle factHandle,
PropagationContext pctx,
InternalWorkingMemory workingMemory)
Register a newly asserted right tuple into the behaviors' context
|
Behavior.Context[] |
createBehaviorContext()
Creates the behaviors' context
|
Behavior[] |
getBehaviors() |
void |
readExternal(ObjectInput in) |
void |
retractFact(Object behaviorContext,
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)
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 Behavior.Context[] createBehaviorContext()
public boolean assertFact(Object behaviorContext, InternalFactHandle factHandle, PropagationContext pctx, InternalWorkingMemory workingMemory)
public void retractFact(Object behaviorContext, InternalFactHandle factHandle, PropagationContext pctx, InternalWorkingMemory workingMemory)
public Behavior[] getBehaviors()
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.