Class CloudComputer
- java.lang.Object
-
- org.optaplanner.examples.common.domain.AbstractPersistable
-
- org.optaplanner.examples.cloudbalancing.domain.CloudComputer
-
- All Implemented Interfaces:
Labeled
public class CloudComputer extends AbstractPersistable implements Labeled
-
-
Field Summary
-
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id
-
-
Constructor Summary
Constructors Constructor Description CloudComputer()CloudComputer(long id, int cpuPower, int memory, int networkBandwidth, int cost)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCost()intgetCpuPower()StringgetLabel()intgetMemory()intgetMultiplicand()intgetNetworkBandwidth()voidsetCost(int cost)voidsetCpuPower(int cpuPower)voidsetMemory(int memory)voidsetNetworkBandwidth(int networkBandwidth)-
Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
getId, setId, toString
-
-
-
-
Method Detail
-
getCpuPower
public int getCpuPower()
-
setCpuPower
public void setCpuPower(int cpuPower)
-
getMemory
public int getMemory()
-
setMemory
public void setMemory(int memory)
-
getNetworkBandwidth
public int getNetworkBandwidth()
-
setNetworkBandwidth
public void setNetworkBandwidth(int networkBandwidth)
-
getCost
public int getCost()
-
setCost
public void setCost(int cost)
-
getMultiplicand
public int getMultiplicand()
-
-