GridSim 5.0 beta

gridsim.parallel.profile
Class Profile.Entry

Object
  extended by ProfileEntry
      extended by Profile.Entry
All Implemented Interfaces:
Comparable<ProfileEntry>
Enclosing class:
Profile

protected class Profile.Entry
extends ProfileEntry

This class is used to return an entry when the user calls one of the methods to query the availability of resources.

Author:
Marcos Dias de Assuncao

Constructor Summary
protected Profile.Entry(double time)
          Creates an entry with null ranges and the time given
protected Profile.Entry(double time, PERangeList list)
          Creates an entry with the list of ranges and the time given
 
Method Summary
 ProfileEntry clone(double time)
          Returns a clone of this entry.
 PERangeList getAvailRanges()
          Returns the list of ranges available at this entry
 int getNumPE()
          Gets the number of PEs associated with this entry
 String toString()
           
 
Methods inherited from class ProfileEntry
compareTo, decreaseJob, getNumJobs, getTime, increaseJob, setTime
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Profile.Entry

protected Profile.Entry(double time)
Creates an entry with null ranges and the time given

Parameters:
time - the time for the entry

Profile.Entry

protected Profile.Entry(double time,
                        PERangeList list)
Creates an entry with the list of ranges and the time given

Parameters:
time - the time for the entry
list - the list of ranges
Method Detail

getAvailRanges

public PERangeList getAvailRanges()
Description copied from class: ProfileEntry
Returns the list of ranges available at this entry

Specified by:
getAvailRanges in class ProfileEntry
Returns:
the list of ranges available

getNumPE

public int getNumPE()
Description copied from class: ProfileEntry
Gets the number of PEs associated with this entry

Specified by:
getNumPE in class ProfileEntry
Returns:
the number of PEs

clone

public ProfileEntry clone(double time)
Description copied from class: ProfileEntry
Returns a clone of this entry. The ranges are cloned, but the time and the number of requests relying on this entry are not.

Specified by:
clone in class ProfileEntry
Parameters:
time - the time for the new entry
Returns:
the new entry with the number of requests set to default.

toString

public String toString()
Overrides:
toString in class Object

GridSim 5.0 beta

The University of Melbourne, Australia, 2009