Package jline.lang.layered
Class Task
java.lang.Object
jline.lang.Element
jline.lang.layered.LayeredNetworkElement
jline.lang.layered.Task
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CacheTask
A LayeredNetwork entity that can host services specified in the form of Entry objects and that runs on a Host
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected Processor
protected List<ActivityPrecedence>
protected int
protected SchedStrategy
protected Distribution
protected double
protected double
-
Constructor Summary
ConstructorDescriptionTask
(LayeredNetwork model, String name) Task
(LayeredNetwork model, String name, int multiplicity) Task
(LayeredNetwork model, String name, int multiplicity, SchedStrategy scheduling) Task
(LayeredNetwork model, String name, int multiplicity, SchedStrategy scheduling, Distribution thinkTime) -
Method Summary
Modifier and TypeMethodDescriptionaddActivity
(Activity newActivity) addPrecedence
(List<ActivityPrecedence> newPrec) addPrecedence
(ActivityPrecedence newPrec) double
getMeanHostDemand
(String entryName) removeActivity
(int index) setActivity
(Activity newActivity, int index) setReplication
(int replication) setReplyEntry
(List<Entry> replyEntry) setThinkTime
(double thinkTime) setThinkTime
(Distribution thinkTime)
-
Field Details
-
parent
-
multiplicity
protected int multiplicity -
replication
protected int replication -
scheduling
-
thinkTime
-
thinkTimeMean
protected double thinkTimeMean -
thinkTimeSCV
protected double thinkTimeSCV -
entries
-
activities
-
precedences
-
-
Constructor Details
-
Task
public Task(LayeredNetwork model, String name, int multiplicity, SchedStrategy scheduling, Distribution thinkTime) -
Task
-
Task
-
Task
-
-
Method Details
-
setReplication
-
on
-
setAsReferenceTask
-
setThinkTime
-
setThinkTime
-
addEntry
-
addActivity
-
setActivity
-
removeActivity
-
addPrecedence
-
addPrecedence
-
setReplyEntry
-
getMeanHostDemand
-