gridsim
Class ResourceCharacteristics

java.lang.Object
  |
  +--gridsim.ResourceCharacteristics

public class ResourceCharacteristics
extends java.lang.Object

A resource characteristics information.


Field Summary
static int ADVANCE_RESERVATION
           
static int SPACE_SHARED
           
static int TIME_SHARED
           
 
Constructor Summary
ResourceCharacteristics(java.lang.String architecture, java.lang.String OS, gridsim.MachineList machineList, int allocation_policy, double TimeZone, double CostPerSec)
           
 
Method Summary
 int ByteSize()
           
 double CPU_time(double GridletLength, double load)
           
 int GetAllocationPolicy()
           
 java.lang.String GetArch()
           
 double GetCostPerMI()
           
 double GetCostPerSec()
           
 int GetID()
          Get Resource ID
 gridsim.MachineList GetMachines()
           
 int GetMIPSRating()
          Get Total MIPS rating = Sum of MIPS rating of all Machines in a resource
 int GetMIPSRatingOfOnePE()
          Get MIPS Rating of a PE.
 int GetMIPSRatingOfOnePE(int machine_ID, int PE_ID)
          Get MIPS Rating of a PE.
 java.lang.String GetName()
          It returns the name of Resource as specified by the user.
 int GetNoOfPEs()
           
 java.lang.String GetOS()
           
 double GetTimeZone()
           
 void SetCostPerSec(double CostPerSec)
           
 void SetID(int id)
          Set Resource ID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIME_SHARED

public static final int TIME_SHARED
See Also:
Constant Field Values

SPACE_SHARED

public static final int SPACE_SHARED
See Also:
Constant Field Values

ADVANCE_RESERVATION

public static final int ADVANCE_RESERVATION
See Also:
Constant Field Values
Constructor Detail

ResourceCharacteristics

public ResourceCharacteristics(java.lang.String architecture,
                               java.lang.String OS,
                               gridsim.MachineList machineList,
                               int allocation_policy,
                               double TimeZone,
                               double CostPerSec)
Method Detail

SetID

public void SetID(int id)
Set Resource ID


GetID

public int GetID()
Get Resource ID


GetName

public java.lang.String GetName()
It returns the name of Resource as specified by the user.


GetArch

public java.lang.String GetArch()

GetOS

public java.lang.String GetOS()

GetMachines

public gridsim.MachineList GetMachines()

GetAllocationPolicy

public int GetAllocationPolicy()

GetTimeZone

public double GetTimeZone()

GetMIPSRatingOfOnePE

public int GetMIPSRatingOfOnePE()
Get MIPS Rating of a PE. It is assumed all PE's rating is same in a given Machine.


GetMIPSRatingOfOnePE

public int GetMIPSRatingOfOnePE(int machine_ID,
                                int PE_ID)
Get MIPS Rating of a PE. It is essential to use this method when a resource is made up of heterogenous PEs/machines.


GetMIPSRating

public int GetMIPSRating()
Get Total MIPS rating = Sum of MIPS rating of all Machines in a resource

Returns:
Sum of MIPS ratings of all Machines in a resource.

CPU_time

public double CPU_time(double GridletLength,
                       double load)

GetNoOfPEs

public int GetNoOfPEs()

SetCostPerSec

public void SetCostPerSec(double CostPerSec)

GetCostPerSec

public double GetCostPerSec()

GetCostPerMI

public double GetCostPerMI()

ByteSize

public int ByteSize()