Class FunctionTask
-
- All Implemented Interfaces:
-
java.io.Serializable,jline.lang.Copyable
@Deprecated() public class FunctionTask extends Task
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.
-
-
Field Summary
Fields Modifier and Type Field Description protected Processorparentprotected intmultiplicityprotected intreplicationprotected SchedStrategyschedulingprotected DistributionthinkTimeprotected doublethinkTimeMeanprotected doublethinkTimeSCVprotected DistributionsetupTimeprotected doublesetupTimeMeanprotected doublesetupTimeSCVprotected DistributiondelayOffTimeprotected doubledelayOffTimeMeanprotected doubledelayOffTimeSCVprotected List<Entry>entriesprotected List<Activity>activitiesprotected List<ActivityPrecedence>precedencespublic final static intACTIVITYpublic final static intCALLpublic final static intENTRYpublic final static intHOSTpublic final static intPROCESSORpublic final static intTASKpublic LayeredNetworkmodelprotected Stringname
-
Constructor Summary
Constructors Constructor Description FunctionTask(LayeredNetwork model, String name, int multiplicity, SchedStrategy scheduling)Constructor for FunctionTask. FunctionTask(LayeredNetwork model, String name, int multiplicity)Constructor with default scheduling strategy (FCFS). FunctionTask(LayeredNetwork model, String name)Constructor with default multiplicity and scheduling.
-
Method Summary
Modifier and Type Method Description FunctionTaskon(Processor parent)FunctionTasksetThinkTime(Distribution thinkTime)FunctionTasksetThinkTime(double thinkTime)FunctionTasksetSetupTime(Distribution setupTime)Set the setup time (cold start time) for the task. FunctionTasksetSetupTime(double setupTime)Set the setup time using a mean value (creates exponential distribution). FunctionTasksetDelayOffTime(Distribution delayOffTime)Set the delay-off time (teardown time) for the task. FunctionTasksetDelayOffTime(double delayOffTime)Set the delay-off time using a mean value (creates exponential distribution). -
Methods inherited from class jline.lang.layered.Task
addActivity, addEntry, addPrecedence, addPrecedence, addPrecedence, getDelayOffTime, getDelayOffTimeMean, getDelayOffTimeSCV, getMeanHostDemand, getSetupTime, getSetupTimeMean, getSetupTimeSCV, hasSetupDelayoff, removeActivity, setActivity, setAsReferenceTask, setReplication, setReplyEntry -
Methods inherited from class jline.lang.Element
getName, setName -
Methods inherited from class jline.lang.Copyable
copy -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
FunctionTask
FunctionTask(LayeredNetwork model, String name, int multiplicity, SchedStrategy scheduling)
Constructor for FunctionTask.- Parameters:
model- The LayeredNetwork model this task belongs toname- The name of the function taskmultiplicity- The number of function instances that can run concurrentlyscheduling- The scheduling strategy for the function instances
-
FunctionTask
FunctionTask(LayeredNetwork model, String name, int multiplicity)
Constructor with default scheduling strategy (FCFS).
-
FunctionTask
FunctionTask(LayeredNetwork model, String name)
Constructor with default multiplicity and scheduling.
-
-
Method Detail
-
on
FunctionTask on(Processor parent)
-
setThinkTime
FunctionTask setThinkTime(Distribution thinkTime)
-
setThinkTime
FunctionTask setThinkTime(double thinkTime)
-
setSetupTime
FunctionTask setSetupTime(Distribution setupTime)
Set the setup time (cold start time) for the task.
- Parameters:
setupTime- The setup time distribution- Returns:
This Task instance for method chaining
-
setSetupTime
FunctionTask setSetupTime(double setupTime)
Set the setup time using a mean value (creates exponential distribution).
- Parameters:
setupTime- The mean setup time- Returns:
This Task instance for method chaining
-
setDelayOffTime
FunctionTask setDelayOffTime(Distribution delayOffTime)
Set the delay-off time (teardown time) for the task.
- Parameters:
delayOffTime- The delay-off time distribution- Returns:
This Task instance for method chaining
-
setDelayOffTime
FunctionTask setDelayOffTime(double delayOffTime)
Set the delay-off time using a mean value (creates exponential distribution).
- Parameters:
delayOffTime- The mean delay-off time- Returns:
This Task instance for method chaining
-
-
-
-