![JAR search and dependency download from the Maven repository](/logo.png)
jasima.core.experiment.FullFactorialExperiment 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.
/*******************************************************************************
* Copyright (c) 2010-2013 Torsten Hildebrandt and jasima contributors
*
* This file is part of jasima, v1.0.
*
* jasima is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* jasima is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with jasima. If not, see .
*
* $Id: FullFactorialExperiment.java 74 2013-01-08 17:31:49Z [email protected] $
*******************************************************************************/
package jasima.core.experiment;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
* Systematically tests all possible combinations of various factors and their
* values on a base experiment.
*
* @author Torsten Hildebrandt
* @version
* "$Id: FullFactorialExperiment.java 74 2013-01-08 17:31:49Z [email protected] $"
*/
public class FullFactorialExperiment extends AbstractMultiConfExperiment {
private static final long serialVersionUID = 1612150171949724274L;
private ArrayList factorNames;
private Map> factors;
public FullFactorialExperiment() {
super();
factors = new LinkedHashMap>();
}
/**
* Clears all configurations previously added using addFactor.
*/
public void clearFactors() {
factors.clear();
}
/**
* Adds a configuration to test.
*
* @param name
* The factor name. This should be the name of a Java Beans
* Property of the base experiment, otherwise execution of the
* experiment will fail. In case {@code value} is a
* {@link ComplexFactorSetter}, name can be arbitrary.
* @param value
* The value to test for factor {@code name}.
*/
public void addFactor(String name, Object value) {
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy