示例#1
0
 /**
  * Get the list of horizontal corrector agents
  *
  * @return the list of horizontal corrector agents
  */
 public List<CorrectorAgent> getHorizontalCorrectorAgents() {
   final List<CorrectorAgent> horizontalCorrectorAgents =
       new ArrayList<CorrectorAgent>(_correctorAgents.size());
   for (CorrectorAgent corrector : _correctorAgents) {
     if (corrector.isHorizontal()) {
       horizontalCorrectorAgents.add(corrector);
     }
   }
   return horizontalCorrectorAgents;
 }
示例#2
0
 /**
  * Get the list of vertical corrector agents
  *
  * @return the list of vertical corrector agents
  */
 public List<CorrectorAgent> getVerticalCorrectorAgents() {
   final List<CorrectorAgent> verticalCorrectorAgents =
       new ArrayList<CorrectorAgent>(_correctorAgents.size());
   for (CorrectorAgent corrector : _correctorAgents) {
     if (corrector.isVertical()) {
       verticalCorrectorAgents.add(corrector);
     }
   }
   return verticalCorrectorAgents;
 }
示例#3
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
 }