Package jline.lang.layered
Class Host
java.lang.Object
jline.lang.Element
jline.lang.layered.LayeredNetworkElement
jline.lang.layered.Host
- All Implemented Interfaces:
Serializable,Copyable
- Direct Known Subclasses:
Processor
A processor that can run Tasks
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected doubleprotected intprotected SchedStrategyprotected double -
Constructor Summary
ConstructorsConstructorDescriptionHost(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 TypeMethodDescriptionvoidintdoubleintdoublegetTasks()Returns the list of tasks running on this host.booleanremoveTask(Task newTask) voidsetMultiplicity(int multiplicity) voidsetQuantum(double quantum) voidsetReplication(int replication) voidsetScheduling(SchedStrategy scheduling) voidsetSpeedFactor(double speedFactor)
-
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
-
addTask
-
removeTask
-
setReplication
public void setReplication(int replication) -
getTasks
Returns the list of tasks running on this host.- Returns:
- the list of tasks
-
getMultiplicity
public int getMultiplicity() -
setMultiplicity
public void setMultiplicity(int multiplicity) -
getReplication
public int getReplication() -
getScheduling
-
setScheduling
-
getQuantum
public double getQuantum() -
setQuantum
public void setQuantum(double quantum) -
getSpeedFactor
public double getSpeedFactor() -
setSpeedFactor
public void setSpeedFactor(double speedFactor)
-