orca.policy.core.util
Class AllotmentEntry

java.lang.Object
  extended by orca.policy.core.util.AllotmentEntry

public class AllotmentEntry
extends java.lang.Object


Field Summary
protected  ResourceEntry machine
           
protected  int units
          Number of units allocated on this machine
 
Constructor Summary
AllotmentEntry(int units, ResourceEntry machine)
          Create an entry for the allotment table.
 
Method Summary
 void addUnits(int newUnits)
           
 ID getId()
          Return the resource's id
 int getUnits()
           
 long[] remainingSpacePerUnit()
           
 long[] remainingSpacePerUnit(long[] demand)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

machine

protected ResourceEntry machine

units

protected int units
Number of units allocated on this machine

Constructor Detail

AllotmentEntry

public AllotmentEntry(int units,
                      ResourceEntry machine)
Create an entry for the allotment table. Need to determine free space at the machine and the per unit space.

Parameters:
startTime -
endTime -
numElements -
id -
units -
resource -
machine -
Method Detail

remainingSpacePerUnit

public long[] remainingSpacePerUnit()

remainingSpacePerUnit

public long[] remainingSpacePerUnit(long[] demand)

getId

public ID getId()
Return the resource's id

Returns:

getUnits

public int getUnits()

addUnits

public void addUnits(int newUnits)


Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.