Package jline.lang.layered
Class Activity
java.lang.Object
jline.lang.Element
jline.lang.layered.LayeredNetworkElement
jline.lang.layered.Activity
- All Implemented Interfaces:
Serializable,Copyable
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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Matrixprotected Stringprotected Stringprotected Distributionprotected doubleprotected doubleprotected Taskprotected intprotected Matrixprotected Matrixprotected Distributionprotected doubleprotected double -
Constructor Summary
ConstructorsConstructorDescriptionActivity(LayeredNetwork model, String name) Activity(LayeredNetwork model, String name, Distribution hostDemand) Activity(LayeredNetwork model, String name, Distribution hostDemand, String boundToEntry) Activity(LayeredNetwork model, String name, Distribution hostDemand, String boundToEntry, String callOrder) -
Method Summary
Modifier and TypeMethodDescriptionasynchCall(String asynchCallDest) asynchCall(String asynchCallDest, double asynchCallMean) asynchCall(Entry asynchCallDest) asynchCall(Entry asynchCallDest, double asynchCallMean) doubledoubleintgetPhase()Get the phase number for this activity.doubledoublesetAsyncCallMeans(double asyncCallMean) setAsyncCallMeans(Matrix asyncCallMeans) setCallOrder(String callOrder) voidsetHostDemand(double hostDemand) voidsetHostDemand(Distribution hostDemand) voidsetPhase(int phase) Set the phase number for this activity.setSyncCallMeans(double syncCallMean) setSyncCallMeans(Matrix syncCallMeans) voidsetThinkTime(double thinkTime) voidsetThinkTime(Distribution thinkTime)
-
Field Details
-
hostDemand
-
hostDemandMean
protected double hostDemandMean -
hostDemandSCV
protected double hostDemandSCV -
parent
-
boundToEntry
-
callOrder
-
syncCallDests
-
syncCallMeans
-
asyncCallDests
-
asyncCallMeans
-
scheduling
-
thinkTime
-
thinkTimeMean
protected double thinkTimeMean -
thinkTimeSCV
protected double thinkTimeSCV -
phase
protected int phase
-
-
Constructor Details
-
Activity
public Activity(LayeredNetwork model, String name, Distribution hostDemand, String boundToEntry, String callOrder) -
Activity
-
Activity
-
Activity
-
-
Method Details
-
asynchCall
-
asynchCall
-
asynchCall
-
asynchCall
-
boundTo
-
boundTo
-
on
-
repliesTo
-
setCallOrder
-
setHostDemand
public void setHostDemand(double hostDemand) -
setHostDemand
-
setParent
-
setThinkTime
-
setThinkTime
public void setThinkTime(double thinkTime) -
getThinkTime
-
getThinkTimeMean
public double getThinkTimeMean() -
getThinkTimeSCV
public double getThinkTimeSCV() -
getHostDemand
-
getHostDemandMean
public double getHostDemandMean() -
getHostDemandSCV
public double getHostDemandSCV() -
getCallOrder
-
getBoundToEntry
-
getPhase
public int getPhase()Get the phase number for this activity. Phase 1: activities before the reply is sent Phase 2: activities after the reply is sent (post-reply processing)- Returns:
- The phase number (1 or 2)
-
setPhase
Set the phase number for this activity. Phase 1: activities before the reply is sent Phase 2: activities after the reply is sent (post-reply processing)- Parameters:
phase- The phase number (must be 1 or 2)- Returns:
- This activity for method chaining
-
synchCall
-
synchCall
-
synchCall
-
synchCall
-
getParent
-
getSyncCallDests
-
getSyncCallMeans
-
setSyncCallMeans
-
setSyncCallMeans
-
getAsyncCallDests
-
getAsyncCallMeans
-
setAsyncCallMeans
-
setAsyncCallMeans
-