org.drools.core.base
Class SequentialKnowledgeHelper
java.lang.Object
org.drools.core.base.SequentialKnowledgeHelper
- All Implemented Interfaces:
- Serializable, KnowledgeHelper, org.kie.api.runtime.KieContext, org.kie.api.runtime.rule.RuleContext
public class SequentialKnowledgeHelper
- extends Object
- implements KnowledgeHelper
- See Also:
- Serialized Form
|
Method Summary |
void |
blockMatch(org.kie.api.runtime.rule.Match match)
|
void |
cancelMatch(org.kie.api.runtime.rule.Match match)
|
void |
cancelRemainingPreviousLogicalDependencies()
|
|
don(K core,
Class<T> trait)
|
|
don(K core,
Class<T> trait,
boolean logical)
|
|
don(Thing<K> core,
Class<T> trait)
|
|
don(Thing<K> core,
Class<T> trait,
boolean logical)
|
Object |
get(Declaration declaration)
|
org.kie.api.runtime.Channel |
getChannel(String id)
|
Map<String,org.kie.api.runtime.Channel> |
getChannels()
|
|
getContext(Class<T> contextClass)
|
Declaration |
getDeclaration(String identifier)
|
org.kie.api.runtime.rule.SessionEntryPoint |
getEntryPoint(String id)
|
Map<String,org.kie.api.runtime.rule.SessionEntryPoint> |
getEntryPoints()
|
FactHandle |
getFactHandle(FactHandle handle)
|
FactHandle |
getFactHandle(Object object)
|
IdentityHashMap<Object,FactHandle> |
getIdentityMap()
|
org.kie.api.runtime.KieRuntime |
getKieRuntime()
|
org.kie.internal.runtime.KnowledgeRuntime |
getKnowledgeRuntime()
|
Activation |
getMatch()
|
Rule |
getRule()
|
Tuple |
getTuple()
|
WorkingMemory |
getWorkingMemory()
|
|
grant(K core,
Class<T> trait)
|
|
grant(Thing<K> core,
Class<T> trait)
|
void |
halt()
|
FactHandle |
insert(Object object)
Asserts an object |
FactHandle |
insert(Object object,
boolean dynamic)
Asserts an object specifying that it implement the onPropertyChange
listener |
void |
insertLogical(Object object)
|
void |
insertLogical(Object object,
boolean dynamic)
|
void |
insertLogical(Object object,
Object value)
|
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)
|
|
shed(Thing<K> thing,
Class<T> trait)
|
|
shed(TraitableBean<K,X> core,
Class<T> trait)
|
void |
unblockAllMatches(org.kie.api.runtime.rule.Match match)
|
void |
update(FactHandle newObject)
|
void |
update(FactHandle newObject,
long mask,
Class<?> typeClass)
|
void |
update(FactHandle handle,
Object newObject)
|
void |
update(Object newObject)
|
void |
update(Object newObject,
long mask,
Class<?> typeClass)
|
|
ward(K core,
Class<T> trait)
|
|
ward(Thing<K> core,
Class<T> trait)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequentialKnowledgeHelper
public SequentialKnowledgeHelper(WorkingMemory workingMemory)
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 KnowledgeHelper- Specified by:
getRule in interface org.kie.api.runtime.rule.RuleContext
- 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.kie.internal.runtime.KnowledgeRuntime getKnowledgeRuntime()
- Specified by:
getKnowledgeRuntime in interface org.kie.api.runtime.KieContext
getKieRuntime
public org.kie.api.runtime.KieRuntime getKieRuntime()
- Specified by:
getKieRuntime in interface org.kie.api.runtime.KieContext
getMatch
public Activation getMatch()
- Specified by:
getMatch in interface KnowledgeHelper- Specified by:
getMatch in interface org.kie.api.runtime.rule.RuleContext
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.kie.api.runtime.rule.SessionEntryPoint getEntryPoint(String id)
- Specified by:
getEntryPoint in interface KnowledgeHelper
getChannel
public org.kie.api.runtime.Channel getChannel(String id)
- Specified by:
getChannel in interface KnowledgeHelper
getEntryPoints
public Map<String,org.kie.api.runtime.rule.SessionEntryPoint> getEntryPoints()
- Specified by:
getEntryPoints in interface KnowledgeHelper
getChannels
public Map<String,org.kie.api.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,X extends TraitableBean> Thing<K> shed(TraitableBean<K,X> core,
Class<T> trait)
- Specified by:
shed in interface KnowledgeHelper
ward
public <T,K> Thing<K> ward(Thing<K> core,
Class<T> trait)
ward
public <T,K> Thing<K> ward(K core,
Class<T> trait)
grant
public <T,K> Thing<K> grant(Thing<K> core,
Class<T> trait)
grant
public <T,K> Thing<K> grant(K core,
Class<T> trait)
cancelRemainingPreviousLogicalDependencies
public void cancelRemainingPreviousLogicalDependencies()
- Specified by:
cancelRemainingPreviousLogicalDependencies in interface KnowledgeHelper
insert
public FactHandle insert(Object object)
- Description copied from interface:
KnowledgeHelper
- Asserts an object
- Specified by:
insert in interface KnowledgeHelper
- Parameters:
object - -
the object to be asserted
insert
public FactHandle insert(Object object,
boolean dynamic)
- Description copied from interface:
KnowledgeHelper
- Asserts an object specifying that it implement the onPropertyChange
listener
- Specified by:
insert in interface KnowledgeHelper
- Parameters:
object - -
the object to be asserteddynamic - -
specifies the object implements onPropertyChangeListener
insertLogical
public void insertLogical(Object object)
- Specified by:
insertLogical in interface KnowledgeHelper- Specified by:
insertLogical in interface org.kie.api.runtime.rule.RuleContext
insertLogical
public void insertLogical(Object object,
boolean dynamic)
- Specified by:
insertLogical in interface KnowledgeHelper
insertLogical
public void insertLogical(Object object,
Object value)
- Specified by:
insertLogical in interface org.kie.api.runtime.rule.RuleContext
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
update
public void update(FactHandle newObject,
long mask,
Class<?> typeClass)
- 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
update
public void update(Object newObject,
long mask,
Class<?> typeClass)
- 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
blockMatch
public void blockMatch(org.kie.api.runtime.rule.Match match)
- Specified by:
blockMatch in interface org.kie.api.runtime.rule.RuleContext
unblockAllMatches
public void unblockAllMatches(org.kie.api.runtime.rule.Match match)
- Specified by:
unblockAllMatches in interface org.kie.api.runtime.rule.RuleContext
cancelMatch
public void cancelMatch(org.kie.api.runtime.rule.Match match)
- Specified by:
cancelMatch in interface org.kie.api.runtime.rule.RuleContext
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.