Interface CustomerEntity

All Superinterfaces:
ChangeableId, Delayable, Identifiable, UniquelyIdentifiable
All Known Subinterfaces:
Cloudlet, Vm
All Known Implementing Classes:
CloudletAbstract, CloudletSimple, CustomerEntityAbstract, NetworkCloudlet, NetworkVm, VmGroup, VmSimple

public interface CustomerEntity extends UniquelyIdentifiable, ChangeableId, Delayable
Represents an object that is owned by a DatacenterBroker, namely Vm and Cloudlet.
Author:
raysaoliveira
  • Method Details

    • getBroker

      DatacenterBroker getBroker()
      Gets the DatacenterBroker that represents the owner of this object.
      Returns:
      the broker or DatacenterBroker.NULL if a broker has not been set yet
    • setBroker

      void setBroker(DatacenterBroker broker)
      Sets a DatacenterBroker that represents the owner of this object.
      Parameters:
      broker - the DatacenterBroker to set
    • getSimulation

      Simulation getSimulation()
      Gets the CloudSim instance that represents the simulation the Entity is related to.
      Returns:
    • setLastTriedDatacenter

      void setLastTriedDatacenter(Datacenter lastTriedDatacenter)
      Sets the last Datacenter where entity was tried to be created.
      Parameters:
      lastTriedDatacenter -
    • getLastTriedDatacenter

      Datacenter getLastTriedDatacenter()
      Gets the last Datacenter where entity was tried to be created.
    • getArrivedTime

      double getArrivedTime()
      Gets the absolute time the entity arrived at the broker, before being submitted to a Datacenter.
      Returns:
      the arrived time (in seconds)
      See Also:
    • setArrivedTime

      CustomerEntity setArrivedTime(double time)
      Sets the absolute time the entity arrived at the broker, before being submitted to a Datacenter.
      Parameters:
      time - the time to set
    • getCreationTime

      double getCreationTime()
      Gets the absolute time the entity was created into a Datacenter.
      Returns:
      the creation time (in seconds)
      See Also:
    • getWaitTime

      double getWaitTime()
      Gets the total time the entity had to wait before being created, either due to a given submission delay or because there was no suitable Host available after the VM submission.
      Returns:
      the total wait time (in seconds)
      See Also: