Package jline.lang.layered
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.
-
-
Field Summary
Fields Modifier and Type Field Description protected Distribution
hostDemand
protected double
hostDemandMean
protected double
hostDemandSCV
protected Task
parent
protected String
boundToEntry
protected String
callOrder
protected Map<Integer, String>
syncCallDests
protected Matrix
syncCallMeans
protected Map<Integer, String>
asyncCallDests
protected Matrix
asyncCallMeans
protected Matrix
scheduling
public final static int
ACTIVITY
public final static int
CALL
public final static int
ENTRY
public final static int
HOST
public final static int
PROCESSOR
public final static int
TASK
public LayeredNetwork
model
protected String
name
-
Constructor Summary
Constructors Constructor Description Activity(LayeredNetwork model, String name, Distribution hostDemand, String boundToEntry, String callOrder)
Activity(LayeredNetwork model, String name, Distribution hostDemand, String boundToEntry)
Activity(LayeredNetwork model, String name, Distribution hostDemand)
Activity(LayeredNetwork model, String name)
-
Method Summary
-
-
Constructor Detail
-
Activity
Activity(LayeredNetwork model, String name, Distribution hostDemand, String boundToEntry, String callOrder)
-
Activity
Activity(LayeredNetwork model, String name, Distribution hostDemand, String boundToEntry)
-
Activity
Activity(LayeredNetwork model, String name, Distribution hostDemand)
-
Activity
Activity(LayeredNetwork model, String name)
-
-
Method Detail
-
asynchCall
Activity asynchCall(Entry asynchCallDest, double asynchCallMean)
-
asynchCall
Activity asynchCall(String asynchCallDest, double asynchCallMean)
-
asynchCall
Activity asynchCall(Entry asynchCallDest)
-
asynchCall
Activity asynchCall(String asynchCallDest)
-
setCallOrder
Activity setCallOrder(String callOrder)
-
setHostDemand
void setHostDemand(double hostDemand)
-
setHostDemand
void setHostDemand(Distribution hostDemand)
-
getSyncCallDests
Map<Integer, String> getSyncCallDests()
-
getSyncCallMeans
Matrix getSyncCallMeans()
-
setSyncCallMeans
Activity setSyncCallMeans(Matrix syncCallMeans)
-
setSyncCallMeans
Activity setSyncCallMeans(double syncCallMean)
-
getAsyncCallDests
Map<Integer, String> getAsyncCallDests()
-
getAsyncCallMeans
Matrix getAsyncCallMeans()
-
setAsyncCallMeans
Activity setAsyncCallMeans(Matrix asyncCallMeans)
-
setAsyncCallMeans
Activity setAsyncCallMeans(double asyncCallMean)
-
-
-
-