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
     
    double
    Gets the allocated mips.
    double
    Gets the requested mips.
    double
    Gets the time the state information is being collected (in seconds).
    int
     
    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).

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • 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 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 (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

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

      public int hashCode()
      Overrides:
      hashCode in class Object