Class VmStateHistoryEntry

java.lang.Object
org.cloudsimplus.vms.VmStateHistoryEntry

public class VmStateHistoryEntry extends Object
Historic data about requests and allocation of MIPS (Million Instructions Per Second) 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 VmStateHistoryEntry
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 MIPS
      requestedMips - the requested MIPS
      inMigration - 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