public class ExpressionGuardFactory extends Object implements GuardFactory
Modifier and Type | Field and Description |
---|---|
protected MatchedEventConvertor |
convertor |
protected ExprEvaluator |
expression |
Constructor and Description |
---|
ExpressionGuardFactory() |
Modifier and Type | Method and Description |
---|---|
Guard |
makeGuard(PatternAgentInstanceContext context,
MatchedEventMap beginState,
Quitable quitable,
Object guardState)
Constructs a guard instance.
|
void |
setConvertor(MatchedEventConvertor convertor) |
void |
setExpression(ExprEvaluator expression) |
protected ExprEvaluator expression
protected MatchedEventConvertor convertor
public void setExpression(ExprEvaluator expression)
public void setConvertor(MatchedEventConvertor convertor)
public Guard makeGuard(PatternAgentInstanceContext context, MatchedEventMap beginState, Quitable quitable, Object guardState)
GuardFactory
makeGuard
in interface GuardFactory
context
- - services for use by guardbeginState
- - the prior matching eventsquitable
- - to use for indicating the guard has quitguardState
- - state node for guardCopyright © 2005–2018. All rights reserved.