java.lang.Object
edu.kit.ipd.sdq.pcm.simulation.scheduler.exact.loaddistribution.balancers.AbstractLoadBalancer
edu.kit.ipd.sdq.pcm.simulation.scheduler.exact.loaddistribution.balancers.OneToIdleBalancer
All Implemented Interfaces:
ILoadBalancer

public class OneToIdleBalancer extends AbstractLoadBalancer
Moves one process to each idle resource, if possible.
  • Constructor Details

    • OneToIdleBalancer

      public OneToIdleBalancer(double balance_interval, boolean prio_increasing, boolean queue_ascending)
  • Method Details

    • activelyBalance

      public void activelyBalance(IResourceInstance instance)
      Description copied from interface: ILoadBalancer
      Balances the load. Two scenarios are possible. Either the load is balanced between all instances, or the specified instances pulls processes from the busiest one.
    • onFork

      public void onFork(IResourceInstance instance)
    • onSleep

      public void onSleep(IResourceInstance instance)
    • onTerminate

      public void onTerminate(IResourceInstance instance)
    • onWake

      public void onWake(IResourceInstance instance)