GridSim 5.0 beta

gridsim.parallel.profile
Class ResourcePartition

Object
  extended by ResourcePartition
Direct Known Subclasses:
AggressiveMultiPartitions.EasyBackFillingPartition

public class ResourcePartition
extends Object

This class represents a resource partition for a multiple-partition based availability profile.

Since:
5.0
Author:
Marcos Dias de Assuncao
See Also:
PartProfile, PartitionPredicate

Constructor Summary
ResourcePartition(int queueId, int numPE, PartitionPredicate predicate)
          Creates a new ResourcePartition object.
 
Method Summary
 int getInitialNumPEs()
          Gets the number of PEs initially assigned to the partition
 int getPartitionId()
          Gets the partition ID
 PartitionPredicate getPredicate()
          Gets the predicate of this partition
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourcePartition

public ResourcePartition(int queueId,
                         int numPE,
                         PartitionPredicate predicate)
Creates a new ResourcePartition object.

Parameters:
queueId - the partition ID
numPE - the number of PEs initially assigned to the partition
predicate - the queue predicate
See Also:
PartitionPredicate
Method Detail

getPartitionId

public final int getPartitionId()
Gets the partition ID

Returns:
the partition ID

getInitialNumPEs

public final int getInitialNumPEs()
Gets the number of PEs initially assigned to the partition

Returns:
the number of PEs initially assigned to the partition

getPredicate

public final PartitionPredicate getPredicate()
Gets the predicate of this partition

Returns:
the predicate of this partition

GridSim 5.0 beta

The University of Melbourne, Australia, 2009