|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthu.mta.sztaki.lpds.cloud.simulator.iaas.constraints.ResourceConstraints
hu.mta.sztaki.lpds.cloud.simulator.iaas.constraints.ConstantConstraints
public class ConstantConstraints
Defines the non-mutable main resource constraints representation
| Field Summary | |
|---|---|
static ConstantConstraints |
noResources
Provides easy access to the one and original zero constraints |
private double |
requiredCPUs
|
private long |
requiredMemory
|
private boolean |
requiredProcessingIsMinimum
|
private double |
requiredProcessingPower
|
private double |
totalProcessingPower
|
| Constructor Summary | |
|---|---|
ConstantConstraints(double cpu,
double processing,
boolean isMinimum,
long memory)
The main constructor to define resource constraints |
|
ConstantConstraints(double cpu,
double processing,
long memory)
A constructor to define resource constraints with exact amount of resources |
|
ConstantConstraints(ResourceConstraints toCopy)
Allows to make an arbitrary resourceconstraints object into a constant one |
|
| Method Summary | |
|---|---|
double |
getRequiredCPUs()
Allows to query how many CPUs this constraints object represent |
long |
getRequiredMemory()
Allows to query how much memory this constraints object represent |
double |
getRequiredProcessingPower()
Allows to query the performance of a single CPU core represented by this constraints object represent |
double |
getTotalProcessingPower()
The total processing power of all cores represented by this constraints object: total=cpus*processingpower |
boolean |
isRequiredProcessingIsMinimum()
Determines if the specified amounts of resources are minimally or exactly required. |
| Methods inherited from class hu.mta.sztaki.lpds.cloud.simulator.iaas.constraints.ResourceConstraints |
|---|
compareTo, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ConstantConstraints noResources
private final double requiredCPUs
private final double requiredProcessingPower
private final boolean requiredProcessingIsMinimum
private final long requiredMemory
private final double totalProcessingPower
| Constructor Detail |
|---|
public ConstantConstraints(double cpu,
double processing,
long memory)
cpu - number of coresprocessing - per core processing power in instructions/tickmemory - number of bytes
public ConstantConstraints(double cpu,
double processing,
boolean isMinimum,
long memory)
cpu - number of coresprocessing - per core processing power in instructions/tickisMinimum - memory - number of bytespublic ConstantConstraints(ResourceConstraints toCopy)
toCopy - the other resource constraints to copy| Method Detail |
|---|
public double getRequiredCPUs()
ResourceConstraints
getRequiredCPUs in class ResourceConstraintspublic double getRequiredProcessingPower()
ResourceConstraints
getRequiredProcessingPower in class ResourceConstraintspublic boolean isRequiredProcessingIsMinimum()
ResourceConstraints
isRequiredProcessingIsMinimum in class ResourceConstraintspublic long getRequiredMemory()
ResourceConstraints
getRequiredMemory in class ResourceConstraintspublic double getTotalProcessingPower()
ResourceConstraints
getTotalProcessingPower in class ResourceConstraints
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||