Package org.cloudbus.cloudsim.vms
Class VmStateHistoryEntry
java.lang.Object
org.cloudbus.cloudsim.vms.VmStateHistoryEntry
public class VmStateHistoryEntry extends Object
Historic data about requests and allocation of MIPS for a given VM over the time.
- Since:
- CloudSim Toolkit 2.1.2
- Author:
- Anton Beloglazov
-
Constructor Summary
Constructors Constructor Description VmStateHistoryEntry(double time, double allocatedMips, double requestedMips, boolean inMigration)
Instantiates a new VmStateHistoryEntry -
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
double
getAllocatedMips()
Gets the allocated mips.double
getRequestedMips()
Gets the requested mips.double
getTime()
Gets the time.int
hashCode()
boolean
isInMigration()
Checks if the Vm is in migration for the current history.protected void
setAllocatedMips(double allocatedMips)
Sets the allocated mips.protected void
setInMigration(boolean inMigration)
Defines if the Vm is in migration for the current history.protected void
setRequestedMips(double requestedMips)
Sets the requested mips.protected void
setTime(double time)
Sets the time.
-
Constructor Details
-
VmStateHistoryEntry
public VmStateHistoryEntry(double time, double allocatedMips, double requestedMips, boolean inMigration)Instantiates a new VmStateHistoryEntry- Parameters:
time
- the timeallocatedMips
- the allocated mipsrequestedMips
- the requested mipsinMigration
- the is in migration
-
-
Method Details
-
setTime
protected final void setTime(double time)Sets the time.- Parameters:
time
- the new time
-
getTime
public double getTime()Gets the time.- Returns:
- the time
-
setAllocatedMips
protected final void setAllocatedMips(double allocatedMips)Sets the allocated mips.- Parameters:
allocatedMips
- the new allocated mips
-
getAllocatedMips
public double getAllocatedMips()Gets the allocated mips.- Returns:
- the allocated mips
-
setRequestedMips
protected final void setRequestedMips(double requestedMips)Sets the requested mips.- Parameters:
requestedMips
- the new requested mips
-
getRequestedMips
public double getRequestedMips()Gets the requested mips.- Returns:
- the requested mips
-
setInMigration
protected final void setInMigration(boolean inMigration)Defines if the Vm is in migration for the current history.- Parameters:
inMigration
- true if the Vm is in migration, false otherwise
-
isInMigration
public boolean isInMigration()Checks if the Vm is in migration for the current history.- Returns:
- true if the Vm is in migration, false otherwise
-
equals
-
hashCode
public int hashCode()
-