org.drools.base
Class SequentialKnowledgeHelper

java.lang.Object
  extended by org.drools.base.SequentialKnowledgeHelper
All Implemented Interfaces:
Serializable, org.drools.runtime.KnowledgeContext, org.drools.runtime.rule.RuleContext, KnowledgeHelper

public class SequentialKnowledgeHelper
extends Object
implements KnowledgeHelper

See Also:
Serialized Form

Constructor Summary
SequentialKnowledgeHelper(WorkingMemory workingMemory)
           
 
Method Summary
 void blockActivation(org.drools.runtime.rule.Activation match)
           
 void cancelActivation(org.drools.runtime.rule.Activation match)
           
 void cancelRemainingPreviousLogicalDependencies()
           
<T,K> T
don(K core, Class<T> trait)
           
<T,K> T
don(K core, Class<T> trait, boolean logical)
           
<T,K> T
don(Thing<K> core, Class<T> trait)
           
<T,K> T
don(Thing<K> core, Class<T> trait, boolean logical)
           
 Object get(Declaration declaration)
           
 Activation getActivation()
           
 org.drools.runtime.Channel getChannel(String id)
           
 Map<String,org.drools.runtime.Channel> getChannels()
           
<T> T
getContext(Class<T> contextClass)
           
 Declaration getDeclaration(String identifier)
           
 org.drools.runtime.rule.WorkingMemoryEntryPoint getEntryPoint(String id)
           
 Map<String,org.drools.runtime.rule.WorkingMemoryEntryPoint> getEntryPoints()
           
 org.drools.runtime.ExitPoint getExitPoint(String id)
          Deprecated. use getChannels() instead
 Map<String,org.drools.runtime.ExitPoint> getExitPoints()
          Deprecated. use getChannels() instead
 FactHandle getFactHandle(FactHandle handle)
           
 FactHandle getFactHandle(Object object)
           
 IdentityHashMap<Object,FactHandle> getIdentityMap()
           
 org.drools.runtime.KnowledgeRuntime getKnowledgeRuntime()
           
 Rule getRule()
           
 Tuple getTuple()
           
 WorkingMemory getWorkingMemory()
           
 void halt()
           
 void insert(Object object)
          Asserts an object, notice that it does not return the FactHandle
 void insert(Object object, boolean dynamic)
          Asserts an object specifying that it implement the onPropertyChange listener, notice that it does not return the FactHandle.
 void insertLogical(Object object)
           
 void insertLogical(Object object, boolean dynamic)
           
 void modify(Object newObject)
           
 void reset()
           
 void retract(FactHandle handle)
           
 void retract(Object handle)
           
 void setActivation(Activation agendaItem)
           
 void setFocus(String focus)
           
 void setIdentityMap(IdentityHashMap<Object,FactHandle> identityMap)
           
<T,K> Thing<K>
shed(Thing<K> thing, Class<T> trait)
           
<T,K> Thing<K>
shed(TraitableBean<K> core, Class<T> trait)
           
 void unblockAllActivations(org.drools.runtime.rule.Activation match)
           
 void update(FactHandle newObject)
           
 void update(FactHandle handle, Object newObject)
           
 void update(Object newObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequentialKnowledgeHelper

public SequentialKnowledgeHelper(WorkingMemory workingMemory)
Method Detail

setActivation

public void setActivation(Activation agendaItem)
Specified by:
setActivation in interface KnowledgeHelper

reset

public void reset()
Specified by:
reset in interface KnowledgeHelper

getRule

public Rule getRule()
Specified by:
getRule in interface org.drools.runtime.rule.RuleContext
Specified by:
getRule in interface KnowledgeHelper
Returns:
- The rule name

getTuple

public Tuple getTuple()
Specified by:
getTuple in interface KnowledgeHelper

getWorkingMemory

public WorkingMemory getWorkingMemory()
Specified by:
getWorkingMemory in interface KnowledgeHelper

getKnowledgeRuntime

public org.drools.runtime.KnowledgeRuntime getKnowledgeRuntime()
Specified by:
getKnowledgeRuntime in interface org.drools.runtime.KnowledgeContext

getActivation

public Activation getActivation()
Specified by:
getActivation in interface org.drools.runtime.rule.RuleContext
Specified by:
getActivation in interface KnowledgeHelper

setFocus

public void setFocus(String focus)
Specified by:
setFocus in interface KnowledgeHelper

get

public Object get(Declaration declaration)
Specified by:
get in interface KnowledgeHelper

getDeclaration

public Declaration getDeclaration(String identifier)
Specified by:
getDeclaration in interface KnowledgeHelper

halt

public void halt()
Specified by:
halt in interface KnowledgeHelper

getEntryPoint

public org.drools.runtime.rule.WorkingMemoryEntryPoint getEntryPoint(String id)
Specified by:
getEntryPoint in interface KnowledgeHelper

getExitPoint

@Deprecated
public org.drools.runtime.ExitPoint getExitPoint(String id)
Deprecated. use getChannels() instead

Specified by:
getExitPoint in interface KnowledgeHelper

getChannel

public org.drools.runtime.Channel getChannel(String id)
Specified by:
getChannel in interface KnowledgeHelper

getEntryPoints

public Map<String,org.drools.runtime.rule.WorkingMemoryEntryPoint> getEntryPoints()
Specified by:
getEntryPoints in interface KnowledgeHelper

getExitPoints

@Deprecated
public Map<String,org.drools.runtime.ExitPoint> getExitPoints()
Deprecated. use getChannels() instead

Specified by:
getExitPoints in interface KnowledgeHelper

getChannels

public Map<String,org.drools.runtime.Channel> getChannels()
Specified by:
getChannels in interface KnowledgeHelper

getIdentityMap

public IdentityHashMap<Object,FactHandle> getIdentityMap()
Specified by:
getIdentityMap in interface KnowledgeHelper

setIdentityMap

public void setIdentityMap(IdentityHashMap<Object,FactHandle> identityMap)
Specified by:
setIdentityMap in interface KnowledgeHelper

getContext

public <T> T getContext(Class<T> contextClass)
Specified by:
getContext in interface KnowledgeHelper

don

public <T,K> T don(K core,
                   Class<T> trait,
                   boolean logical)
Specified by:
don in interface KnowledgeHelper

don

public <T,K> T don(Thing<K> core,
                   Class<T> trait,
                   boolean logical)
Specified by:
don in interface KnowledgeHelper

don

public <T,K> T don(K core,
                   Class<T> trait)
Specified by:
don in interface KnowledgeHelper

don

public <T,K> T don(Thing<K> core,
                   Class<T> trait)
Specified by:
don in interface KnowledgeHelper

shed

public <T,K> Thing<K> shed(Thing<K> thing,
                           Class<T> trait)
Specified by:
shed in interface KnowledgeHelper

shed

public <T,K> Thing<K> shed(TraitableBean<K> core,
                           Class<T> trait)
Specified by:
shed in interface KnowledgeHelper

cancelRemainingPreviousLogicalDependencies

public void cancelRemainingPreviousLogicalDependencies()
Specified by:
cancelRemainingPreviousLogicalDependencies in interface KnowledgeHelper

insert

public void insert(Object object)
Description copied from interface: KnowledgeHelper
Asserts an object, notice that it does not return the FactHandle

Specified by:
insert in interface KnowledgeHelper
Parameters:
object - - the object to be asserted

insert

public void insert(Object object,
                   boolean dynamic)
Description copied from interface: KnowledgeHelper
Asserts an object specifying that it implement the onPropertyChange listener, notice that it does not return the FactHandle.

Specified by:
insert in interface KnowledgeHelper
Parameters:
object - - the object to be asserted
dynamic - - specifies the object implements onPropertyChangeListener

insertLogical

public void insertLogical(Object object)
Specified by:
insertLogical in interface org.drools.runtime.rule.RuleContext
Specified by:
insertLogical in interface KnowledgeHelper

insertLogical

public void insertLogical(Object object,
                          boolean dynamic)
Specified by:
insertLogical in interface KnowledgeHelper

getFactHandle

public FactHandle getFactHandle(Object object)
Specified by:
getFactHandle in interface KnowledgeHelper

getFactHandle

public FactHandle getFactHandle(FactHandle handle)
Specified by:
getFactHandle in interface KnowledgeHelper

update

public void update(FactHandle handle,
                   Object newObject)
Specified by:
update in interface KnowledgeHelper

update

public void update(FactHandle newObject)
Specified by:
update in interface KnowledgeHelper

retract

public void retract(FactHandle handle)
Specified by:
retract in interface KnowledgeHelper

update

public void update(Object newObject)
Specified by:
update in interface KnowledgeHelper

retract

public void retract(Object handle)
Specified by:
retract in interface KnowledgeHelper

modify

public void modify(Object newObject)
Specified by:
modify in interface KnowledgeHelper

blockActivation

public void blockActivation(org.drools.runtime.rule.Activation match)
Specified by:
blockActivation in interface org.drools.runtime.rule.RuleContext

unblockAllActivations

public void unblockAllActivations(org.drools.runtime.rule.Activation match)
Specified by:
unblockAllActivations in interface org.drools.runtime.rule.RuleContext

cancelActivation

public void cancelActivation(org.drools.runtime.rule.Activation match)
Specified by:
cancelActivation in interface org.drools.runtime.rule.RuleContext


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.