public class ApplicabilityRule extends Object
Represents an applicability rule. The rule is evaluated by delegating the evaluation to the client via the
PlanningListeners
interface.
Constructor and Description |
---|
ApplicabilityRule(PlannableItem context,
TApplicabilityRule applicabilityRule) |
Modifier and Type | Method and Description |
---|---|
TApplicabilityRule |
getApplicabilityRule() |
String |
getCondition()
Extract the condition string from the
applicabilityRule property. |
PlannableItem |
getContext() |
boolean |
isApplicable(TransitionData transitionData,
PlanningListeners planningListeners,
EvaluationListeners evaluationListeners)
Evaluate the applicability of this rule by delegating the evaluation of the rule to the passed
planningListeners interface. |
String |
toString() |
public ApplicabilityRule(PlannableItem context, TApplicabilityRule applicabilityRule)
context
- the plannable itemapplicabilityRule
- the applicability rulepublic String getCondition()
Extract the condition string from the applicabilityRule
property.
public boolean isApplicable(TransitionData transitionData, PlanningListeners planningListeners, EvaluationListeners evaluationListeners)
Evaluate the applicability of this rule by delegating the evaluation of the rule to the passed
planningListeners
interface.
planningListeners
- the planning listenerstransitionData
- optional evaluation contextevaluationListeners
- the interface providing the hooks for expression evaluationpublic PlannableItem getContext()
public TApplicabilityRule getApplicabilityRule()
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.