Package eu.planets_project.pp.plato.model.values

Examples of eu.planets_project.pp.plato.model.values.TargetValue


     * provided ordinal value according to the specified {@link #mapping}.
     * @param v the ordinal value to be transformed
     * @return {@link TargetValue} transformed value.
     */
    public TargetValue transform(IOrdinalValue v) {
        TargetValue t = new TargetValue();
        TargetValueObject o = mapping.get(v.getValue());
        t.setValue(o.getValue());
        return t;
    }
View Full Code Here


     *
     * @param d value to be transformed
     * @return transformed {@link TargetValue}
     */
    private TargetValue doTransform(double d) {
        TargetValue v = new TargetValue();
        switch (mode) {
        case THRESHOLD_STEPPING:
            v.setValue(thresholdstepping(d));
            break;
        case LINEAR:
            v.setValue(linear(d));
            break;
        default:
            PlatoLogger.getLogger(this.getClass()).error(
                    "TransformationMode is not set correctly.");
        }
View Full Code Here

TOP

Related Classes of eu.planets_project.pp.plato.model.values.TargetValue

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.