Drools :: Core 6.1.0.Beta1

org.drools.core.time.impl
Class BaseTimer

java.lang.Object
  extended by org.drools.core.rule.ConditionalElement
      extended by org.drools.core.time.impl.BaseTimer
All Implemented Interfaces:
Externalizable, Serializable, Cloneable, RuleConditionElement, RuleComponent
Direct Known Subclasses:
CompositeMaxDurationTimer, CronTimer, DurationTimer, ExpressionIntervalTimer, IntervalTimer

public abstract class BaseTimer
extends ConditionalElement

See Also:
Serialized Form

Constructor Summary
BaseTimer()
           
 
Method Summary
 Map getInnerDeclarations()
          Returns a Map of declarations that are visible inside this conditional element
 List getNestedElements()
          Returs a list of RuleConditionElement's that are nested inside the current element
 Map getOuterDeclarations()
          Returns a Map of declarations that are visible outside this conditional element.
abstract  Declaration[][] getTimerDeclarations(Map<String,Declaration> outerDeclrs)
           
 boolean isPatternScopeDelimiter()
          Returns true in case this RuleConditionElement delimits a pattern visibility scope.
 Declaration resolveDeclaration(String identifier)
          Resolves the given identifier in the current scope and returns the Declaration object for the declaration.
protected  Declaration[] sortDeclarations(Map<String,Declaration> outerDeclrs, Declaration[] declrs)
           
 
Methods inherited from class org.drools.core.rule.ConditionalElement
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 

Constructor Detail

BaseTimer

public BaseTimer()
Method Detail

getInnerDeclarations

public Map getInnerDeclarations()
Description copied from interface: RuleConditionElement
Returns a Map of declarations that are visible inside this conditional element

Returns:

getOuterDeclarations

public Map getOuterDeclarations()
Description copied from interface: RuleConditionElement
Returns a Map of declarations that are visible outside this conditional element.

Returns:

resolveDeclaration

public Declaration resolveDeclaration(String identifier)
Description copied from interface: RuleConditionElement
Resolves the given identifier in the current scope and returns the Declaration object for the declaration. Returns null if identifier can not be resolved.

Returns:

getNestedElements

public List getNestedElements()
Description copied from interface: RuleConditionElement
Returs a list of RuleConditionElement's that are nested inside the current element

Returns:

isPatternScopeDelimiter

public boolean isPatternScopeDelimiter()
Description copied from interface: RuleConditionElement
Returns true in case this RuleConditionElement delimits a pattern visibility scope. For instance, AND CE is not a scope delimiter, while NOT CE is a scope delimiter

Returns:

getTimerDeclarations

public abstract Declaration[][] getTimerDeclarations(Map<String,Declaration> outerDeclrs)

sortDeclarations

protected Declaration[] sortDeclarations(Map<String,Declaration> outerDeclrs,
                                         Declaration[] declrs)

Drools :: Core 6.1.0.Beta1

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