
jasima.shopSim.util.modelDef.streams.DblExponentialDefFactory 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 java.util.List;
public class DblExponentialDefFactory extends StreamDefFact {
public DblExponentialDefFactory() {
super();
}
@Override
public String getTypeString() {
return DblExponentialDef.getTypeString();
}
@Override
public DblExponentialDef stringToStreamDef(String params,
List errors) {
double d;
try {
d = Double.parseDouble(params);
} catch (NumberFormatException nfe) {
errors.add(String.format("invalid number: %s",
nfe.getLocalizedMessage()));
return null;
}
DblExponentialDef res = new DblExponentialDef();
res.setMean(d);
return res;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy