All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jasima.shopSim.util.modelDef.streams.DblExponentialDefFactory Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.3.0
Show newest version
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