Class Task

  • All Implemented Interfaces:
    java.io.Serializable , jline.lang.Copyable

    
    public class Task
    extends LayeredNetworkElement
                        

    A Task represents a software component or process in a layered queueing network that can host services (Entry objects) and runs on a Processor (Host).

    Tasks are fundamental building blocks in layered queueing networks that encapsulate:

    • Service entries that define the interfaces accessible to other tasks
    • Activities that represent internal processing steps
    • Activity precedences that define the execution order and relationships
    • Resource demands and scheduling policies

    Key characteristics:

    • Multiplicity: Number of concurrent task instances that can execute
    • Scheduling: How the task schedules its internal processing (FCFS, PS, etc.)
    • Think time: Time between completing one request and starting the next
    • Reference tasks: Special tasks that generate workload (external customers)

    Tasks can be reference tasks (SchedStrategy.REF) that represent external workload generators, or regular tasks that provide services to other tasks in the system.