public static class RunningStrategy.UnconditionalRunningStrategy extends Object implements RunningStrategy
RunningStrategy.UnconditionalRunningStrategy
RUN_ALWAYS, RUN_CONDITIONAL, RUN_NEVER
Constructor and Description |
---|
UnconditionalRunningStrategy(ProcessingResource pr,
boolean run) |
Modifier and Type | Method and Description |
---|---|
ProcessingResource |
getPR()
Gets the associated ProcessingResource.
|
int |
getRunMode()
Returns the run mode (see
RunningStrategy.RUN_ALWAYS , RunningStrategy.RUN_NEVER ,
RunningStrategy.RUN_CONDITIONAL ). |
boolean |
shouldRun()
Returns true if the associated PR should be run.
|
void |
shouldRun(boolean run) |
public UnconditionalRunningStrategy(ProcessingResource pr, boolean run)
public boolean shouldRun()
RunningStrategy
shouldRun
in interface RunningStrategy
public void shouldRun(boolean run)
public int getRunMode()
RunningStrategy
RunningStrategy.RUN_ALWAYS
, RunningStrategy.RUN_NEVER
,
RunningStrategy.RUN_CONDITIONAL
).getRunMode
in interface RunningStrategy
public ProcessingResource getPR()
RunningStrategy
getPR
in interface RunningStrategy
ProcessingResource
value.Copyright © 2024 GATE. All rights reserved.