Class Host

All Implemented Interfaces:
Serializable, Copyable
Direct Known Subclasses:
Processor

public class Host extends LayeredNetworkElement
A processor that can run Tasks
See Also:
  • Field Details

    • multiplicity

      protected int multiplicity
    • replication

      protected int replication
    • scheduling

      protected SchedStrategy scheduling
    • quantum

      protected double quantum
    • speedFactor

      protected double speedFactor
    • tasks

      protected List<Task> tasks
  • Constructor Details

  • Method Details

    • addTask

      public void addTask(Task newTask)
    • removeTask

      public boolean removeTask(Task newTask)
    • setReplication

      public void setReplication(int replication)
    • getTasks

      public List<Task> 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

      public SchedStrategy getScheduling()
    • setScheduling

      public void setScheduling(SchedStrategy scheduling)
    • getQuantum

      public double getQuantum()
    • setQuantum

      public void setQuantum(double quantum)
    • getSpeedFactor

      public double getSpeedFactor()
    • setSpeedFactor

      public void setSpeedFactor(double speedFactor)