Class VmStateHistoryEntry
java.lang.Object
org.cloudsimplus.vms.VmStateHistoryEntry
-
Constructor Summary
ConstructorsConstructorDescriptionVmStateHistoryEntry(double time, double allocatedMips, double requestedMips, boolean inMigration) Instantiates a VmStateHistoryEntry -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidsetAllocatedMips(double allocatedMips) Sets the allocated MIPS.protected final voidsetInMigration(boolean inMigration) Defines if the Vm is in migration for the current history.protected final voidsetRequestedMips(double requestedMips) Sets the requested MIPS.protected final voidsetTime(double time) Sets the time the state information is being collected.
-
Constructor Details
-
VmStateHistoryEntry
public VmStateHistoryEntry(double time, double allocatedMips, double requestedMips, boolean inMigration) Instantiates a 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.- Parameters:
time- the new time (in seconds)
-
setAllocatedMips
protected final void setAllocatedMips(double allocatedMips) Sets the allocated MIPS.- Parameters:
allocatedMips- the new allocated MIPS
-
setRequestedMips
protected final void setRequestedMips(double requestedMips) Sets the requested MIPS.- Parameters:
requestedMips- the new 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
-