GridSim 5.0 beta

gridsim
Class GridSimStandardPE

Object
  extended by 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

Method Summary
static int getRating()
          Gets standard PE MIPS Rating
static void setRating(int rating)
          Sets standard PE MIPS Rating
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
 

Method Detail

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()
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 5.0 beta

The University of Melbourne, Australia, 2009