Class IdleSelector
- 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.IdleSelector
-
- All Implemented Interfaces:
IInstanceSelector
public class IdleSelector 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 IdleSelector(SimActiveResource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<IResourceInstance>
getIdleInstances()
IResourceInstance
selectInstanceFor(IActiveProcess process, IResourceInstance current)
Selects a resource instance for an executable process.
-
-
-
Constructor Detail
-
IdleSelector
public IdleSelector(SimActiveResource resource)
-
-
Method Detail
-
selectInstanceFor
public IResourceInstance selectInstanceFor(IActiveProcess process, IResourceInstance current)
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.
-
getIdleInstances
public List<IResourceInstance> getIdleInstances()
-
-