gate.creole
Class RunningStrategy.UnconditionalRunningStrategy

java.lang.Object
  extended by gate.creole.RunningStrategy.UnconditionalRunningStrategy
All Implemented Interfaces:
RunningStrategy
Direct Known Subclasses:
RunningStrategy.RunAlwaysStrategy
Enclosing interface:
RunningStrategy

public static class RunningStrategy.UnconditionalRunningStrategy
extends Object
implements RunningStrategy

RunningStrateguy implementation that unconditionally either runs or doesn't run a given PR.


Nested Class Summary
 
Nested classes/interfaces inherited from interface gate.creole.RunningStrategy
RunningStrategy.RunAlwaysStrategy, RunningStrategy.UnconditionalRunningStrategy
 
Field Summary
 
Fields inherited from interface gate.creole.RunningStrategy
RUN_ALWAYS, RUN_CONDITIONAL, RUN_NEVER
 
Constructor Summary
RunningStrategy.UnconditionalRunningStrategy(ProcessingResource pr, boolean run)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunningStrategy.UnconditionalRunningStrategy

public RunningStrategy.UnconditionalRunningStrategy(ProcessingResource pr,
                                                    boolean run)
Method Detail

shouldRun

public boolean shouldRun()
Description copied from interface: RunningStrategy
Returns true if the associated PR should be run.

Specified by:
shouldRun in interface RunningStrategy
Returns:
a boolean value.

shouldRun

public void shouldRun(boolean run)

getRunMode

public int getRunMode()
Description copied from interface: RunningStrategy
Returns the run mode (see RunningStrategy.RUN_ALWAYS, RunningStrategy.RUN_NEVER, RunningStrategy.RUN_CONDITIONAL).

Specified by:
getRunMode in interface RunningStrategy
Returns:
and int value.

getPR

public ProcessingResource getPR()
Description copied from interface: RunningStrategy
Gets the associated ProcessingResource.

Specified by:
getPR in interface RunningStrategy
Returns:
a ProcessingResource value.