for (Iterator i = getParameters().iterator(); i.hasNext(); ) { p.load(i.next()); if ("maxCycles".equals(p.name)) setMaxCycles(p.value); else if ("pauseInterval".equals(p.name)) setPauseInterval(p.value); else System.out.println( "EffortWaster:  unrecognized parameter \"" + p.name + "\"");
if (getParameters() != null) { for (Iterator i = getParameters().iterator(); i.hasNext(); ) { p.load(i.next()); if ("maxCycles".equals(p.name)) setMaxCycles(p.value); else if ("pauseInterval".equals(p.name)) setPauseInterval(p.value); else if ("initialValue".equals(p.name)) setInitialValue(p.value); else System.out.println( "EffortWaster:  unrecognized parameter \"" + p.name + "\""); }
  public void setupSubscriptions () {    Pair p = new Pair();    for (Iterator i = getParameters().iterator(); i.hasNext(); ) {      p.load(i.next());      if ("maxCycles".equals(p.name))        setMaxCycles(p.value);      else if ("pauseInterval".equals(p.name))        setPauseInterval(p.value);      else        System.out.println(          "EffortWaster:  unrecognized parameter \"" + p.name + "\"");    }    wakeAfter(initialWait);  }