Package uk.ac.soton.itinnovation.pes.data.model

Examples of uk.ac.soton.itinnovation.pes.data.model.Resource


     * computationDeadline and computationInterval. Only Speed is variable.
   * @return CPU resource.
   */
    private Resource getCPUResource ()
    {
        Resource res = new Resource();

        res.setName("CPU");
        res.addAnAttr(newCpuModelAttrib());
        res.addAnAttr(newCpuSpeedAttrib());
        res.addAnAttr(newCPUCompAttrib("computationTime", 100, "msec"));
        res.addAnAttr(newCPUCompAttrib("computationDeadline", 100, "msec"));
        res.addAnAttr(newCPUCompAttrib("computationInterval", 100, "msec"));

        return res;
    }
View Full Code Here


   * Create a new RAM resource with a hard coded value of '2048 Mbytes'
   * @return RAM resource instance.
   */
    private Resource getRAMResource ()
    {
        Resource res = new Resource();
        AttributeType a = new AttributeType();

        res.setName("RAM");

    a.setName("ramSize");
        a.setType(BasicType.STRING);
        a.setUnit(new UnitType("MB", null, null, null));
        a.addAValue(new ValueType("2048", MetricType.EXACT));

        res.addAnAttr(a);

        return res;
    }
View Full Code Here

   * Create a new disk resource with a hard coded value of '100 GBytes'
   * @return Disk resource object.
   */
    private Resource getDiskResource ()
    {
        Resource res = new Resource();
        AttributeType a = new AttributeType();

    res.setName("DISK");

        a.setName("DISKSPACE");
        a.setType(BasicType.STRING);
        a.setUnit(new UnitType("GB", null, null, null));
        a.addAValue(new ValueType("100", MetricType.EXACT));

        res.addAnAttr(a);
        return res;
    }
View Full Code Here

   * @param name name of the link (INBOUND or OUTBOUND allowed values)
   * @return link resource instance.
   */
    private Resource getLinkResource (String name) // INBOUND or OUTBOUND
    {
        Resource res = new Resource();

        res.setName(name);
        res.addAnAttr(newBandwidthAttrib());
        res.addAnAttr(newJitterAttrib());
        res.addAnAttr(newDelayAttrib());

        return res;
    }
View Full Code Here

TOP

Related Classes of uk.ac.soton.itinnovation.pes.data.model.Resource

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.