站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

BuildContext (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.reteoo.builder
Class BuildContext

java.lang.Object
  extended by org.drools.reteoo.builder.BuildContext

public class BuildContext
extends Object

A build context for Reteoo Builder

Author:
etirelli

Constructor Summary
BuildContext(ReteooRuleBase rulebase, ReteooBuilder.IdGenerator idGenerator)
           
 
Method Summary
 void decrementCurrentPatternOffset()
           
 BetaConstraints getBetaconstraints()
           
 int getCurrentPatternOffset()
           
 int getNextId()
          Returns an Id for the next node
 ObjectSource getObjectSource()
           
 Map getObjectType()
           
 ReteooRuleBase getRuleBase()
          Returns context rulebase
 TupleSource getTupleSource()
           
 InternalWorkingMemory[] getWorkingMemories()
          Return the array of working memories associated with the given rulebase.
 void incrementCurrentPatternOffset()
           
 RuleConditionElement peek()
          Returns the top stack element without removing it
 RuleConditionElement pop()
          Removes the top stack element
 void push(RuleConditionElement rce)
          Adds the rce to the build stack
 void releaseLastId()
          Method used to undo previous id assignment
 void setBetaconstraints(BetaConstraints betaconstraints)
           
 void setCurrentPatternOffset(int currentPatternIndex)
           
 void setObjectSource(ObjectSource objectSource)
           
 void setObjectType(Map objectType)
           
 void setTupleSource(TupleSource tupleSource)
           
 ListIterator stackIterator()
          Returns a list iterator to iterate over the stacked elements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildContext

public BuildContext(ReteooRuleBase rulebase,
                    ReteooBuilder.IdGenerator idGenerator)
Method Detail

getCurrentPatternOffset

public int getCurrentPatternOffset()
Returns:
the currentPatternOffset

setCurrentPatternOffset

public void setCurrentPatternOffset(int currentPatternIndex)
Parameters:
currentPatternOffset - the currentPatternOffset to set

getObjectSource

public ObjectSource getObjectSource()
Returns:
the objectSource

setObjectSource

public void setObjectSource(ObjectSource objectSource)
Parameters:
objectSource - the objectSource to set

getObjectType

public Map getObjectType()
Returns:
the objectType

setObjectType

public void setObjectType(Map objectType)
Parameters:
objectType - the objectType to set

getTupleSource

public TupleSource getTupleSource()
Returns:
the tupleSource

setTupleSource

public void setTupleSource(TupleSource tupleSource)
Parameters:
tupleSource - the tupleSource to set

incrementCurrentPatternOffset

public void incrementCurrentPatternOffset()

decrementCurrentPatternOffset

public void decrementCurrentPatternOffset()

getRuleBase

public ReteooRuleBase getRuleBase()
Returns context rulebase

Returns:

getWorkingMemories

public InternalWorkingMemory[] getWorkingMemories()
Return the array of working memories associated with the given rulebase.

Returns:

getNextId

public int getNextId()
Returns an Id for the next node

Returns:

releaseLastId

public void releaseLastId()
Method used to undo previous id assignment


push

public void push(RuleConditionElement rce)
Adds the rce to the build stack

Parameters:
rce -

pop

public RuleConditionElement pop()
Removes the top stack element

Returns:

peek

public RuleConditionElement peek()
Returns the top stack element without removing it

Returns:

stackIterator

public ListIterator stackIterator()
Returns a list iterator to iterate over the stacked elements

Returns:

getBetaconstraints

public BetaConstraints getBetaconstraints()
Returns:
the betaconstraints

setBetaconstraints

public void setBetaconstraints(BetaConstraints betaconstraints)
Parameters:
betaconstraints - the betaconstraints to set


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.