Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*******************************************************************************
* This file is part of jasima, v1.3, the Java simulator for manufacturing and
* logistics.
*
* Copyright (c) 2015 jasima solutions UG
* Copyright (c) 2010-2015 Torsten Hildebrandt and jasima contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*******************************************************************************/
package jasima.core.experiment;
import jasima.core.util.Util;
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 discrete factors
* and their values on a base experiment.
*
* @author Torsten Hildebrandt
* @version
* "$Id: FullFactorialExperiment.java 753 2015-07-27 15:29:49Z [email protected] $"
*
* @see RandomFractionalExperiment
* @see OCBAExperiment
*/
public class FullFactorialExperiment extends AbstractMultiConfExperiment {
private static final long serialVersionUID = 1612150171949724274L;
// fields for parameters
private int maxConfigurations = 1000000;
private Map> factors;
// fields used during run
private ArrayList factorNames;
public FullFactorialExperiment() {
super();
setAbortUponBaseExperimentAbort(false);
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 AbstractMultiConfExperiment.ComplexFactorSetter}, name
* can be arbitrary.
* @param value
* The value to test for factor {@code name}.
*/
public void addFactor(String name, Object value) {
List