GridSim
v4.0

gridsim
Class GridSimStandardPE

Object
  extended bygridsim.GridSimStandardPE

public class GridSimStandardPE
extends Object

Defines MIPS (Million Instructions Per Second) rating for a standard PE (Processing Element) or enables the users to define their own MIPS or SPEC (Standard Performance Evaluation Corporation) rating for a standard PE. This value can be used for creating PEs with relative MIPS or SPEC rating for GridSim resources.

This class can be used to define the capability resources or the execution time of Gridlets with respect to standard PE.

Since:
GridSim Toolkit 1.0
Author:
Manzur Murshed and Rajkumar Buyya
Invariant:
$none

Field Summary
static int MIPSRating
          The default value of MIPS Rating (if not defined elsewhere)
 
Method Summary
static int getRating()
          Gets standard PE MIPS Rating
static int GetRating()
          Deprecated. As of GridSim 2.1, replaced by getRating()
static void setRating(int rating)
          Sets standard PE MIPS Rating
static void SetRating(int rating)
          Deprecated. As of GridSim 2.1, replaced by setRating(int)
static double toMIs(double timeInSec)
          Converts Execution time in second processor to MIs
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIPSRating

public static int MIPSRating
The default value of MIPS Rating (if not defined elsewhere)

Method Detail

SetRating

public static void SetRating(int rating)
Deprecated. As of GridSim 2.1, replaced by setRating(int)

Sets standard PE MIPS Rating

Parameters:
rating - the value of a standard PE MIPS rating
Pre Condition:
rating >= 0
Post Condition:
$none

setRating

public static void setRating(int rating)
Sets standard PE MIPS Rating

Parameters:
rating - the value of a standard PE MIPS rating
Pre Condition:
rating >= 0
Post Condition:
$none

GetRating

public static int GetRating()
Deprecated. As of GridSim 2.1, replaced by getRating()

Gets standard PE MIPS Rating

Returns:
the value of a standard PE MIPS rating
Pre Condition:
$none
Post Condition:
$result >= 0

getRating

public static int getRating()
Gets standard PE MIPS Rating

Returns:
the value of a standard PE MIPS rating
Pre Condition:
$none
Post Condition:
$result >= 0

toMIs

public static double toMIs(double timeInSec)
Converts Execution time in second processor to MIs

Parameters:
timeInSec - the execution time in second w.r.t. standard time
Returns:
Equivalent Million Instructions (MIs) for TimeInSec
Pre Condition:
timeInSec >= 0.0
Post Condition:
$result >= 0.0

GridSim
v4.0

The University of Melbourne, Australia, 2006