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)
| 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 |
nothing calls this directly
no test coverage detected