io.engineblock.extensions.optimizers.MVParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eb-extensions Show documentation
Show all versions of eb-extensions Show documentation
Scripting extensions for engineblock.
package io.engineblock.extensions.optimizers;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class MVParams implements Iterable {
private final List paramList = new ArrayList<>();
public MVParams addParam(String name, double min, double max) {
paramList.add(new MVParam(name,min,max));
return this;
}
public int size() {
return paramList.size();
}
@Override
public Iterator iterator() {
return paramList.iterator();
}
public MVParam get(int index) {
return paramList.get(index);
}
public static class MVParam {
public final String name;
public final double min;
public final double max;
public MVParam(String name, double min, double max) {
this.name = name;
this.min = min;
this.max = max;
}
}
}