| Constructor and Description |
|---|
Sentry(TSentry tSentry,
PlannableItem owner,
boolean exitSentry)
Construct a
Sentry. |
| Modifier and Type | Method and Description |
|---|---|
static ArrayList<Sentry> |
createSentries(List<TSentry> xmlSentries,
PlannableItem owningStage,
boolean exitSentry)
A helper method to create a list of sentries given a list of
TSentry objects. |
boolean |
evaluateIfPartBestEffort(PlanItem sentryOwner,
TransitionData transitionData,
EvaluationListeners evaluationListeners) |
TriggerResult |
evaluateOnParts(EventSources eventSources,
PlanItem sentryOwner) |
List<OnPart> |
getOnParts() |
PlannableItem |
getOwner() |
TriggerMode |
getTriggerMode() |
TSentry |
getTSentry() |
boolean |
isExitSentry() |
TriggerResult |
isTriggered(EventSources eventSources,
PlanItem sentryOwner,
TransitionData transitionData,
EvaluationListeners evaluationListeners)
Evaluate the "onParts" of this sentry.
|
String |
toString() |
public Sentry(TSentry tSentry, PlannableItem owner, boolean exitSentry)
Construct a Sentry. Assign parameters to members. For convenience, set up a list of OnPart's
based on the on-parts provided by the tSentry parameter.
tSentry - the sentryowner - the ownerpublic TriggerResult isTriggered(EventSources eventSources, PlanItem sentryOwner, TransitionData transitionData, EvaluationListeners evaluationListeners)
Evaluate the "onParts" of this sentry. In order for the sentry to trigger, all onParts must trigger.
See TriggerResult.
eventSources - the event sourcessentryOwner - the sentry ownerevaluationListeners - the evaluation listenerspublic boolean evaluateIfPartBestEffort(PlanItem sentryOwner, TransitionData transitionData, EvaluationListeners evaluationListeners)
true if the sentry’s if-part is considered triggered (either empty or evaluating to true). The method
never throws an exception. Any exception occurring during the evaluation of the condition results in a false
return value.public TriggerResult evaluateOnParts(EventSources eventSources, PlanItem sentryOwner)
public TSentry getTSentry()
public PlannableItem getOwner()
public boolean isExitSentry()
public TriggerMode getTriggerMode()
public static ArrayList<Sentry> createSentries(List<TSentry> xmlSentries, PlannableItem owningStage, boolean exitSentry)
A helper method to create a list of sentries given a list of TSentry objects.
xmlSentries - the sentriesowningStage - the owning stageCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.