Class RoundRobinSelector
- java.lang.Object
-
- edu.kit.ipd.sdq.pcm.simulation.scheduler.exact.loaddistribution.selectors.instance.AbstractInstanceSelector
-
- edu.kit.ipd.sdq.pcm.simulation.scheduler.exact.loaddistribution.selectors.instance.RoundRobinSelector
-
- All Implemented Interfaces:
IInstanceSelector
public class RoundRobinSelector extends AbstractInstanceSelector
-
-
Field Summary
-
Fields inherited from class edu.kit.ipd.sdq.pcm.simulation.scheduler.exact.loaddistribution.selectors.instance.AbstractInstanceSelector
resource
-
-
Constructor Summary
Constructors Constructor Description RoundRobinSelector(SimActiveResource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IResourceInstance
selectInstanceFor(IActiveProcess process, IResourceInstance running_on)
Selects a resource instance for an executable process.
-
-
-
Constructor Detail
-
RoundRobinSelector
public RoundRobinSelector(SimActiveResource resource)
-
-
Method Detail
-
selectInstanceFor
public IResourceInstance selectInstanceFor(IActiveProcess process, IResourceInstance running_on)
Description copied from interface:IInstanceSelector
Selects a resource instance for an executable process. This can be done initially, when a process is created. Then this method also sets the ideal instance for the process. Another scenario is that the process returns from waiting. In this case, the ideal or last instance of the process can be considered (if set). Once set, the ideal instance of a process is not changed here.
-
-