package org.opentrafficsim.road; import java.lang.reflect.Field; import java.util.Set; import nl.tudelft.simulation.language.reflection.ClassUtil; import org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics; import org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException; import org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterType; import org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeBoolean; import org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeDouble; import org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeInteger; import org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypes; /** * Creator of set of behavioral characteristics with default values. *
* Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
* BSD-style license. See OpenTrafficSim License.
*
* @version $Revision$, $LastChangedDate$, by $Author$, initial version Apr 15, 2016
* @author Wouter Schakel
*/
public final class DefaultTestParameters
{
/**
* Do not create instance.
*/
private DefaultTestParameters()
{
//
}
/**
* Returns a default set of behavioral characteristics.
* @return Default set of behavioral characteristics.
*/
@SuppressWarnings("unchecked")
public static BehavioralCharacteristics create()
{
BehavioralCharacteristics bc = new BehavioralCharacteristics();
// set all default values using reflection
Set