Interface ExecDelayable

All Superinterfaces:
Startable
All Known Subinterfaces:
Cloudlet, CustomerEntity, Host, Machine<T>, PhysicalMachine, SubmissionDelayable, Vm
All Known Implementing Classes:
CloudletAbstract, CloudletSimple, CustomerEntityAbstract, ExecDelayableAbstract, HostAbstract, HostSimple, NetworkCloudlet, NetworkHost, NetworkVm, VmAbstract, VmGroup, VmSimple

public interface ExecDelayable extends Startable
An entity that can have its start and shutdown delayed.
Since:
CloudSim Plus 8.3.0
Author:
Manoel Campos da Silva Filho
  • Method Details

    • getStartupDelay

      double getStartupDelay()
      Get the time (in seconds) for the entity to finish starting up or Startable.NOT_ASSIGNED if not set (meaning the entity starts up rightaway).
      See Also:
    • isStartingUp

      default boolean isStartingUp()
      Returns:
      true if the entity is starting up, false otherwise.
    • isShuttingDown

      boolean isShuttingDown()
      Returns:
      true if the entity is shutting down, false otherwise.
    • getShutdownBeginTime

      double getShutdownBeginTime()
      Returns the shutdown time. That indicates the time entity began shutting down or -1 to indicate it has not started shutting down.
      Returns:
      the shutdown time
    • shutdown

      void shutdown()
      Sends a request to shut down the entity.
      See Also:
    • setShutdownBeginTime

      ExecDelayable setShutdownBeginTime(double shutdownBeginTime)
      Sets the time the VM shutdown has begun.
      Parameters:
      shutdownBeginTime - value to set
      Returns:
      this entity
    • getStartupCompletionTime

      default double getStartupCompletionTime()
      Returns the relative time the entity is expected to finish starting up.. If the entity hasn't started yet, it returns only the relative time after the entity starts it's expected to complete startup.
      Returns:
      the relative time the entity is expected to finish starting up
    • setStartupDelay

      ExecDelayable setStartupDelay(double delay)
      Set the time (in seconds) for the entity to finish starting up.
      See Also:
    • getRemainingStartupTime

      default double getRemainingStartupTime()
      Returns the remaining startup time. That indicates how much longer the startup process will take (or zero if no startup delay was set or the startup has already completed).
      Returns:
      the remaining startup time
    • isStartupDelayed

      default boolean isStartupDelayed()
      Returns:
      true if the entity has a startup delay set; false otherwise.
      See Also:
    • isShutDownDelayed

      default boolean isShutDownDelayed()
      Returns:
      true if the entity shutdown is delayed, false otherwise.
    • getShutDownDelay

      double getShutDownDelay()
      Get the time (in seconds) for the entity to finish shutting down or Startable.NOT_ASSIGNED if not set (meaning the entity shuts down right-away).
      See Also:
    • setShutDownDelay

      ExecDelayable setShutDownDelay(double delay)
      Set the time (in seconds) for the entity to finish shutting down.
      See Also: