Package jline.lang.layered
Class Host
java.lang.Object
jline.lang.Element
jline.lang.layered.LayeredNetworkElement
jline.lang.layered.Host
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Processor
A processor that can run Tasks
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected double
protected int
protected SchedStrategy
protected double
-
Constructor Summary
ConstructorDescriptionHost
(LayeredNetwork model, String name) Host
(LayeredNetwork model, String name, int multiplicity) Host
(LayeredNetwork model, String name, int multiplicity, SchedStrategy scheduling) Host
(LayeredNetwork model, String name, int multiplicity, SchedStrategy scheduling, double quantum) Host
(LayeredNetwork model, String name, int multiplicity, SchedStrategy scheduling, double quantum, double speedFactor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
removeTask
(Task newTask) void
setReplication
(int replication)
-
Field Details
-
multiplicity
protected int multiplicity -
replication
protected int replication -
scheduling
-
quantum
protected double quantum -
speedFactor
protected double speedFactor -
tasks
-
-
Constructor Details
-
Host
public Host(LayeredNetwork model, String name, int multiplicity, SchedStrategy scheduling, double quantum, double speedFactor) -
Host
public Host(LayeredNetwork model, String name, int multiplicity, SchedStrategy scheduling, double quantum) -
Host
-
Host
-
Host
-
-
Method Details
-
setReplication
public void setReplication(int replication) -
addTask
-
removeTask
-