gate.creole
Class RunningStrategy.RunAlwaysStrategy
java.lang.Object
|
+--gate.creole.RunningStrategy.RunAlwaysStrategy
- All Implemented Interfaces:
- RunningStrategy
- Enclosing class:
- RunningStrategy
- public static class RunningStrategy.RunAlwaysStrategy
- extends Object
- implements RunningStrategy
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. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
pr
ProcessingResource pr
RunningStrategy.RunAlwaysStrategy
public RunningStrategy.RunAlwaysStrategy(ProcessingResource pr)
shouldRun
public boolean shouldRun()
- Description copied from interface:
RunningStrategy
- Returns true if the associated PR should be run.
- Specified by:
shouldRun
in interface RunningStrategy
- Following copied from interface:
gate.creole.RunningStrategy
- Returns:
- a boolean value.
getRunMode
public int getRunMode()
- Description copied from interface:
RunningStrategy
- Returns the run mode (see
RUN_ALWAYS
, RUN_NEVER
,
RUN_CONDITIONAL
).
- Specified by:
getRunMode
in interface RunningStrategy
- Following copied from interface:
gate.creole.RunningStrategy
- Returns:
- and int value.
getPR
public ProcessingResource getPR()
- Description copied from interface:
RunningStrategy
- Gets the associated ProcessingResource.
- Specified by:
getPR
in interface RunningStrategy
- Following copied from interface:
gate.creole.RunningStrategy
- Returns:
- a
ProcessingResource
value.