Class FunctionTask

All Implemented Interfaces:
Serializable, Copyable

@Deprecated public class FunctionTask extends SetupTask
Deprecated.
Use SetupTask, or a plain Task with setSetupTime() and setDelayOffTime().
FunctionTask is the former name of SetupTask, retained for backward compatibility.

Setup and delay-off times are not specific to serverless (function-as-a-service) platforms, so the class carrying them is now named after the modelling primitive rather than after that application domain.

See Also:
  • Constructor Details

    • FunctionTask

      public FunctionTask(LayeredNetwork model, String name, int multiplicity, SchedStrategy scheduling)
      Deprecated.
      Constructor for FunctionTask.
      Parameters:
      model - The LayeredNetwork model this task belongs to
      name - The name of the task
      multiplicity - The number of servers that can run concurrently
      scheduling - The scheduling strategy for the servers
    • FunctionTask

      public FunctionTask(LayeredNetwork model, String name, int multiplicity)
      Deprecated.
      Constructor with default scheduling strategy (FCFS).
    • FunctionTask

      public FunctionTask(LayeredNetwork model, String name)
      Deprecated.
      Constructor with default multiplicity and scheduling.
  • Method Details

    • on

      public FunctionTask on(Processor parent)
      Deprecated.
      Overrides:
      on in class SetupTask
    • setThinkTime

      public FunctionTask setThinkTime(Distribution thinkTime)
      Deprecated.
      Overrides:
      setThinkTime in class SetupTask
    • setThinkTime

      public FunctionTask setThinkTime(double thinkTime)
      Deprecated.
      Overrides:
      setThinkTime in class SetupTask
    • setSetupTime

      public FunctionTask setSetupTime(Distribution setupTime)
      Deprecated.
      Description copied from class: Task
      Set the setup time (cold start time) for the task.
      Overrides:
      setSetupTime in class SetupTask
      Parameters:
      setupTime - The setup time distribution
      Returns:
      This Task instance for method chaining
    • setSetupTime

      public FunctionTask setSetupTime(double setupTime)
      Deprecated.
      Description copied from class: Task
      Set the setup time using a mean value (creates exponential distribution).
      Overrides:
      setSetupTime in class SetupTask
      Parameters:
      setupTime - The mean setup time
      Returns:
      This Task instance for method chaining
    • setDelayOffTime

      public FunctionTask setDelayOffTime(Distribution delayOffTime)
      Deprecated.
      Description copied from class: Task
      Set the delay-off time (teardown time) for the task.
      Overrides:
      setDelayOffTime in class SetupTask
      Parameters:
      delayOffTime - The delay-off time distribution
      Returns:
      This Task instance for method chaining
    • setDelayOffTime

      public FunctionTask setDelayOffTime(double delayOffTime)
      Deprecated.
      Description copied from class: Task
      Set the delay-off time using a mean value (creates exponential distribution).
      Overrides:
      setDelayOffTime in class SetupTask
      Parameters:
      delayOffTime - The mean delay-off time
      Returns:
      This Task instance for method chaining