Package org.drools.core.time.impl
Class BaseTimer
- java.lang.Object
-
- org.drools.core.rule.ConditionalElement
-
- 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
Constructors Constructor Description BaseTimer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Map<String,Declaration>
getInnerDeclarations()
Returns a Map of declarations that are visible inside this conditional elementList<? extends RuleConditionElement>
getNestedElements()
Returs a list of RuleConditionElement's that are nested inside the current elementMap<String,Declaration>
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
-
-
-
-
Method Detail
-
getInnerDeclarations
public Map<String,Declaration> getInnerDeclarations()
Description copied from interface:RuleConditionElement
Returns a Map of declarations that are visible inside this conditional element- Returns:
-
getOuterDeclarations
public Map<String,Declaration> 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<? extends RuleConditionElement> 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)
-
-