Class FunctionTask

All Implemented Interfaces:
Serializable, Copyable

@Deprecated public class FunctionTask extends Task
Deprecated.
Use Task directly with setSetupTime() and setDelayOffTime() methods.
FunctionTask is an alias for Task, provided for backward compatibility.

All setup/delayoff functionality has been moved to the base Task class. Any Task can now have setup time (cold start delay) and delay-off time (teardown delay) configured via setSetupTime() and setDelayOffTime().

This class is retained for backward compatibility with existing code that uses FunctionTask to model serverless functions or tasks with initialization overhead.

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 function task
      multiplicity - The number of function instances that can run concurrently
      scheduling - The scheduling strategy for the function instances
    • 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 Task
    • setThinkTime

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

      public FunctionTask setThinkTime(double thinkTime)
      Deprecated.
      Overrides:
      setThinkTime in class Task
    • 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 Task
      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 Task
      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 Task
      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 Task
      Parameters:
      delayOffTime - The mean delay-off time
      Returns:
      This Task instance for method chaining