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 Details

    • VmStateHistoryEntry

      public VmStateHistoryEntry​(double time, double allocatedMips, double requestedMips, boolean inMigration)
      Instantiates a new VmStateHistoryEntry
      Parameters:
      time - the time
      allocatedMips - the allocated mips
      requestedMips - the requested mips
      inMigration - 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

      public boolean equals​(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object