Class Activity

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

    
    public class Activity
    extends LayeredNetworkElement
                        

    An Activity represents an individual processing step or service operation within a Task in a layered queueing network.

    Activities are the fundamental units of work that define what processing happens when a request is served by a task. They encapsulate:

    • Resource demands (CPU time, I/O operations, etc.)
    • Service calls to other tasks (synchronous and asynchronous)
    • Processing logic and execution flow
    • Binding relationships with entries that trigger them

    Key characteristics:

    • Host demand: The computational resources required on the processor
    • Service calls: Requests made to other tasks during execution
    • Call ordering: Whether calls are made deterministically or stochastically
    • Entry binding: Which entry point triggers this activity
    • Reply activity: Whether this activity sends replies back to callers

    Activities can make both synchronous calls (blocking until response) and asynchronous calls (fire-and-forget) to other task entries. They are connected through ActivityPrecedence relationships to form complex execution graphs.