
jasima.shopSim.util.modelDef.streams.DblConstFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jasima-main Show documentation
Show all versions of jasima-main Show documentation
JAva SImulatior for MAnufacturing and logistics - A framework for discrete event simulation and computer experiments with a main focus on modelling and analyzing logistic/manufacturing systems.
package jasima.shopSim.util.modelDef.streams;
import jasima.core.util.Util;
import java.util.List;
public class DblConstFactory extends StreamDefFact {
public DblConstFactory() {
super();
}
@Override
public String getTypeString() {
return DblConstDef.getTypeString();
}
@Override
public DblConstDef stringToStreamDef(String params, List errors) {
double[] ll;
try {
ll = Util.parseDblList(params);
} catch (NumberFormatException nfe) {
errors.add(String.format("invalid number: %s",
nfe.getLocalizedMessage()));
return null;
}
DblConstDef res = new DblConstDef();
res.setValues(ll);
return res;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy