gate.creole
Interface RunningStrategy
- All Known Implementing Classes:
- RunningStrategy.RunAlwaysStrategy, AnalyserRunningStrategy
- public interface RunningStrategy
Base interface for objects that are used to decide whether a PR member of a
ConditionalController
needs to be run.
Field Summary |
static int |
RUN_ALWAYS
Run mode constant meaning the associated PR should be run regardless of
what the shouldRun() method returns. |
static int |
RUN_CONDITIONAL
Run mode constant meaning the associated PR should be run only if the
shouldRun() method returns true. |
static int |
RUN_NEVER
Run mode constant meaning the associated PR should NOT be run regardless of
what the shouldRun() method returns. |
Method Summary |
ProcessingResource |
getPR()
Gets the associated ProcessingResource. |
int |
getRunMode()
Returns the run mode (see RUN_ALWAYS , RUN_NEVER ,
RUN_CONDITIONAL ). |
boolean |
shouldRun()
Returns true if the associated PR should be run. |
RUN_ALWAYS
public static final int RUN_ALWAYS
- Run mode constant meaning the associated PR should be run regardless of
what the
shouldRun()
method returns.
RUN_NEVER
public static final int RUN_NEVER
- Run mode constant meaning the associated PR should NOT be run regardless of
what the
shouldRun()
method returns.
RUN_CONDITIONAL
public static final int RUN_CONDITIONAL
- Run mode constant meaning the associated PR should be run only if the
shouldRun()
method returns true.
shouldRun
public boolean shouldRun()
- Returns true if the associated PR should be run.
- Returns:
- a boolean value.
getRunMode
public int getRunMode()
- Returns the run mode (see
RUN_ALWAYS
, RUN_NEVER
,
RUN_CONDITIONAL
).
- Returns:
- and int value.
getPR
public ProcessingResource getPR()
- Gets the associated ProcessingResource.
- Returns:
- a
ProcessingResource
value.