MCPcopy Create free account
hub / github.com/GateNLP/gate-core / getRunningStrategy

Method getRunningStrategy

src/main/java/gate/Utils.java:740–752  ·  view source on GitHub ↗

Return the running strategy of the PR in the controller, if the controller is a conditional controller. If the controller is not a conditional controller, null is returned. If the controller is a conditional controller and the PR is contained multiple times, the running strategy for the first occurr

(Controller controller,
          ProcessingResource pr)

Source from the content-addressed store, hash-verified

738 * @return A RunningStrategy object or null
739 */
740 public static RunningStrategy getRunningStrategy(Controller controller,
741 ProcessingResource pr) {
742 if(controller instanceof ConditionalSerialController) {
743 Collection<RunningStrategy> rss =
744 ((ConditionalSerialController)controller).getRunningStrategies();
745 for(RunningStrategy rs : rss) {
746 if(rs.getPR() == pr) {
747 return rs;
748 }
749 }
750 }
751 return null;
752 }
753
754 /**
755 * Issue a message to the log but only if the same message has not

Callers

nothing calls this directly

Calls 2

getRunningStrategiesMethod · 0.65
getPRMethod · 0.65

Tested by

no test coverage detected