Package org.cloudbus.cloudsim.vms
Class VmStateHistoryEntry
java.lang.Object
org.cloudbus.cloudsim.vms.VmStateHistoryEntry
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
ConstructorDescriptionVmStateHistoryEntry
(double time, double allocatedMips, double requestedMips, boolean inMigration) Instantiates a new VmStateHistoryEntry -
Method Summary
Modifier and TypeMethodDescriptionboolean
double
Gets the allocated mips.double
Gets the requested mips.double
getTime()
Gets the time the state information is being collected (in seconds).int
hashCode()
boolean
Checks if the Vm is in migration for the current history.protected final void
setAllocatedMips
(double allocatedMips) Sets the allocated mips.protected final void
setInMigration
(boolean inMigration) Defines if the Vm is in migration for the current history.protected final void
setRequestedMips
(double requestedMips) Sets the requested mips.protected final void
setTime
(double time) Sets the time the state information is being collected (in seconds).
-
Constructor Details
-
VmStateHistoryEntry
public VmStateHistoryEntry(double time, double allocatedMips, double requestedMips, boolean inMigration) Instantiates a new VmStateHistoryEntry- Parameters:
time
- the time the state information is being collected.allocatedMips
- the allocated mipsrequestedMips
- the requested mipsinMigration
- if the VM was in migration for that time
-
-
Method Details
-
setTime
protected final void setTime(double time) Sets the time the state information is being collected (in seconds).- Parameters:
time
- the new time
-
getTime
public double getTime()Gets the time the state information is being collected (in seconds).- Returns:
- the time (in seconds)
-
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()
-