Пример #1
0
  /** Return a list of BPM nodes associated with the list of bpmAgents */
  public static List<BPM> getNodes(final List<BpmAgent> bpmAgents) {
    final int count = bpmAgents.size();
    final List<BPM> bpmNodes = new ArrayList<>(count);

    for (int index = 0; index < count; index++) {
      final BpmAgent bpmAgent = bpmAgents.get(index);
      bpmNodes.add(bpmAgent.getNode());
    }
    return bpmNodes;
  }
Пример #2
0
 /**
  * Associate a corrector with this supply.
  *
  * @param corrector the corrector agent to associate with this supply
  */
 public void addCorrector(final CorrectorAgent corrector) {
   _correctors.add(corrector);
   _isEnabled = corrector.isCorrector(); // by default enable only corrector supplies
 }