Package jline.lang.layered
Class FunctionTask
java.lang.Object
jline.lang.Element
jline.lang.layered.LayeredNetworkElement
jline.lang.layered.Task
jline.lang.layered.FunctionTask
- All Implemented Interfaces:
Serializable,Copyable
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:
-
Field Summary
Fields inherited from class jline.lang.layered.Task
activities, delayOffTime, delayOffTimeMean, delayOffTimeSCV, entries, fanInSource, fanInValue, fanOutMap, multiplicity, parent, precedences, priority, replication, scheduling, setupTime, setupTimeMean, setupTimeSCV, thinkTime, thinkTimeMean, thinkTimeSCV -
Constructor Summary
ConstructorsConstructorDescriptionFunctionTask(LayeredNetwork model, String name) Deprecated.Constructor with default multiplicity and scheduling.FunctionTask(LayeredNetwork model, String name, int multiplicity) Deprecated.Constructor with default scheduling strategy (FCFS).FunctionTask(LayeredNetwork model, String name, int multiplicity, SchedStrategy scheduling) Deprecated.Constructor for FunctionTask. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.setDelayOffTime(double delayOffTime) Deprecated.Set the delay-off time using a mean value (creates exponential distribution).setDelayOffTime(Distribution delayOffTime) Deprecated.Set the delay-off time (teardown time) for the task.setSetupTime(double setupTime) Deprecated.Set the setup time using a mean value (creates exponential distribution).setSetupTime(Distribution setupTime) Deprecated.Set the setup time (cold start time) for the task.setThinkTime(double thinkTime) Deprecated.setThinkTime(Distribution thinkTime) Deprecated.Methods inherited from class jline.lang.layered.Task
addActivity, addEntry, addPrecedence, addPrecedence, addPrecedence, getActivities, getDelayOffTime, getDelayOffTimeMean, getDelayOffTimeSCV, getEntries, getFanInSource, getFanInValue, getFanOutMap, getMeanHostDemand, getMultiplicity, getParent, getPrecedences, getPriority, getProcessor, getReplication, getScheduling, getSetupTime, getSetupTimeMean, getSetupTimeSCV, getThinkTimeMean, getThinkTimeSCV, hasSetupDelayoff, removeActivity, setActivity, setAsReferenceTask, setFanIn, setFanOut, setMultiplicity, setPriority, setReplication, setReplyEntry, setScheduling
-
Constructor Details
-
FunctionTask
Deprecated.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
Deprecated.Constructor with default scheduling strategy (FCFS). -
FunctionTask
Deprecated.Constructor with default multiplicity and scheduling.
-
-
Method Details
-
on
Deprecated. -
setThinkTime
Deprecated.- Overrides:
setThinkTimein classTask
-
setThinkTime
Deprecated.- Overrides:
setThinkTimein classTask
-
setSetupTime
Deprecated.Description copied from class:TaskSet the setup time (cold start time) for the task.- Overrides:
setSetupTimein classTask- Parameters:
setupTime- The setup time distribution- Returns:
- This Task instance for method chaining
-
setSetupTime
Deprecated.Description copied from class:TaskSet the setup time using a mean value (creates exponential distribution).- Overrides:
setSetupTimein classTask- Parameters:
setupTime- The mean setup time- Returns:
- This Task instance for method chaining
-
setDelayOffTime
Deprecated.Description copied from class:TaskSet the delay-off time (teardown time) for the task.- Overrides:
setDelayOffTimein classTask- Parameters:
delayOffTime- The delay-off time distribution- Returns:
- This Task instance for method chaining
-
setDelayOffTime
Deprecated.Description copied from class:TaskSet the delay-off time using a mean value (creates exponential distribution).- Overrides:
setDelayOffTimein classTask- Parameters:
delayOffTime- The mean delay-off time- Returns:
- This Task instance for method chaining
-