|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--gridbroker.ResDef
A class that handles resource parameters
Constructor Summary | |
ResDef(String arch,
String os,
int numPE,
int PE_SPEC_Rating,
int allocationPolicy,
double costPerSec)
Allocates a new ResDef object |
Method Summary | |
int |
getAllocationPolicy()
Gets the resource allocation policy |
String |
getArchitecture()
Gets the resource architecture name |
double |
getCostPerSec()
Gets the resource cost per sec |
int |
getNumPE()
Gets the number of PEs (Processing Elements) a resource has |
String |
getOS()
Gets the resource operating system |
int |
getRating()
Gets the rating of resource's PEs |
void |
setAllocationPolicy(int policy)
Sets the resource allocation policy |
void |
setArchitecture(String name)
Sets the resource architecture name |
void |
setCostPerSec(double cost)
Sets the resource cost per sec |
void |
setNumPE(int num)
Sets the number of PEs (Processing Elements) |
void |
setOS(String os)
Sets the resource operating system name |
void |
setRating(int rating)
Sets the rating for resource's PEs |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResDef(String arch, String os, int numPE, int PE_SPEC_Rating, int allocationPolicy, double costPerSec)
arch
- the architecture nameos
- the Operating System namenumPE
- the number of PEs (Processing Elements)PE_SPEC_Rating
- the rating of those PEsallocationPolicy
- the allocatio policy of a resourcecostPerSec
- the cost of a PE per secondMethod Detail |
public String getArchitecture()
public String getOS()
public int getNumPE()
public int getRating()
public int getAllocationPolicy()
public double getCostPerSec()
public void setArchitecture(String name)
name
- resource architecture namepublic void setOS(String os)
os
- operating systempublic void setNumPE(int num)
num
- number of PEspublic void setRating(int rating)
rating
- PEs' ratingpublic void setAllocationPolicy(int policy)
policy
- allocation policyResourceCharacteristics
public void setCostPerSec(double cost)
cost
- resource cost
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |