Examples of addAValue()


Examples of uk.ac.soton.itinnovation.pes.data.model.AttributeType.addAValue()

    private AttributeType newCpuModelAttrib()
    {
        AttributeType a = new AttributeType();
        a.setName("cpuModel");
        a.setType(BasicType.STRING);
        a.addAValue(new ValueType("x86_80486", MetricType.EXACT));
        return a;
    }

    /**
   * Create a new CPU speed attribute with hard coded allowed values of '2000, 2200, 2400 MHz'.
View Full Code Here

Examples of uk.ac.soton.itinnovation.pes.data.model.AttributeType.addAValue()

    {
        AttributeType a = new AttributeType();
        a.setName("cpuSpeed");
        a.setType(BasicType.STRING);
        a.setUnit(new UnitType("MHz", null, null, null));
        a.addAValue(new ValueType("2000", MetricType.VALUESALLOWED));
        a.addAValue(new ValueType("2200", MetricType.VALUESALLOWED));
        a.addAValue(new ValueType("2400", MetricType.VALUESALLOWED));

        return a;
    }
View Full Code Here

Examples of uk.ac.soton.itinnovation.pes.data.model.AttributeType.addAValue()

        AttributeType a = new AttributeType();
        a.setName("cpuSpeed");
        a.setType(BasicType.STRING);
        a.setUnit(new UnitType("MHz", null, null, null));
        a.addAValue(new ValueType("2000", MetricType.VALUESALLOWED));
        a.addAValue(new ValueType("2200", MetricType.VALUESALLOWED));
        a.addAValue(new ValueType("2400", MetricType.VALUESALLOWED));

        return a;
    }
View Full Code Here

Examples of uk.ac.soton.itinnovation.pes.data.model.AttributeType.addAValue()

        a.setName("cpuSpeed");
        a.setType(BasicType.STRING);
        a.setUnit(new UnitType("MHz", null, null, null));
        a.addAValue(new ValueType("2000", MetricType.VALUESALLOWED));
        a.addAValue(new ValueType("2200", MetricType.VALUESALLOWED));
        a.addAValue(new ValueType("2400", MetricType.VALUESALLOWED));

        return a;
    }

    /**
 
View Full Code Here

Examples of uk.ac.soton.itinnovation.pes.data.model.AttributeType.addAValue()

    {
        AttributeType a = new AttributeType();
        a.setName(name);
        a.setType(BasicType.INT);
        a.setUnit(new UnitType(unit, null, null, null));
        a.addAValue(new ValueType(String.valueOf(val), MetricType.EXACT));

        return a;
    }

    /**
 
View Full Code Here

Examples of uk.ac.soton.itinnovation.pes.data.model.AttributeType.addAValue()

    {
        AttributeType a = new AttributeType();
        a.setName(name);
        a.setType(BasicType.INT);
        a.setUnit(new UnitType(unit, null, null, null));
        a.addAValue(new ValueType(String.valueOf(min), MetricType.MIN));
        a.addAValue(new ValueType(String.valueOf(max), MetricType.MAX));
        a.addAValue(new ValueType(String.valueOf(step), MetricType.STEP));

        return a;
    }
View Full Code Here

Examples of uk.ac.soton.itinnovation.pes.data.model.AttributeType.addAValue()

        AttributeType a = new AttributeType();
        a.setName(name);
        a.setType(BasicType.INT);
        a.setUnit(new UnitType(unit, null, null, null));
        a.addAValue(new ValueType(String.valueOf(min), MetricType.MIN));
        a.addAValue(new ValueType(String.valueOf(max), MetricType.MAX));
        a.addAValue(new ValueType(String.valueOf(step), MetricType.STEP));

        return a;
    }
View Full Code Here

Examples of uk.ac.soton.itinnovation.pes.data.model.AttributeType.addAValue()

        a.setName(name);
        a.setType(BasicType.INT);
        a.setUnit(new UnitType(unit, null, null, null));
        a.addAValue(new ValueType(String.valueOf(min), MetricType.MIN));
        a.addAValue(new ValueType(String.valueOf(max), MetricType.MAX));
        a.addAValue(new ValueType(String.valueOf(step), MetricType.STEP));

        return a;
    }

    /**
 
View Full Code Here

Examples of uk.ac.soton.itinnovation.pes.data.model.AttributeType.addAValue()

    {
        AttributeType a = new AttributeType();
        a.setName(name);
        a.setType(BasicType.DOUBLE);
        a.setUnit(new UnitType(unit, null, null, null));
        a.addAValue(new ValueType(String.valueOf(val), MetricType.EXACT));

        return a;
    }

    /**
 
View Full Code Here

Examples of uk.ac.soton.itinnovation.pes.data.model.AttributeType.addAValue()

    {
        AttributeType a = new AttributeType();
        a.setName(name);
        a.setType(BasicType.DOUBLE);
        a.setUnit(new UnitType(unit, null, null, null));
        a.addAValue(new ValueType(String.valueOf(min), MetricType.MIN));
        a.addAValue(new ValueType(String.valueOf(max), MetricType.MAX));
        a.addAValue(new ValueType(String.valueOf(step), MetricType.STEP));

        return a;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.