Package org.movsim.autogen

Examples of org.movsim.autogen.ModelParameterIDM


    /** The Constant LOG. */
    private static final Logger logger = LoggerFactory.getLogger(ModelParameters.class);

    public static void test() {
        ModelParameterIDM modelParameterIDM = new ModelParameterIDM();
        modelParameterIDM.isSetB();

        // IDM idm = new IDM(ModelParameterIDM);

    }
View Full Code Here


    }

    public static ModelParameterIDM getDefaultModelParameterIDM() {
        // TODO fluent interface
        ModelParameterIDM param = new ModelParameterIDM();
        param.setV0(120 / 3.6);
        param.setT(1.5);
        param.setA(1);
        param.setB(1);
        param.setS0(2);
        param.setS1(0);
        param.setDelta(4);

        // TODO good access to model parameter validation: static method
        // if (!IDM.isValidParameters(param)) {
        // throw new IllegalArgumentException();
        // }
View Full Code Here

        super(ModelName.IDM);
        this.param = create(v0, a, b, T, s0, s1);
    }

    private static ModelParameterIDM create(double v0, double a, double b, double T, double s0, double s1) {
        ModelParameterIDM modelParameterIDM = new ModelParameterIDM();
        modelParameterIDM.setV0(v0);
        modelParameterIDM.setA(a);
        modelParameterIDM.setB(b);
        modelParameterIDM.setT(T);
        modelParameterIDM.setS0(s0);
        modelParameterIDM.setS1(s1);
        modelParameterIDM.setDelta(modelParameterIDM.getDelta());
        return modelParameterIDM;
    }
View Full Code Here

TOP

Related Classes of org.movsim.autogen.ModelParameterIDM

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.