Package org.opentcs.components.kernel
Schnittstelle Scheduler.Module
- Alle Superschnittstellen:
Lifecycle
- Umschließende Schnittstelle:
Scheduler
A scheduler module.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
allocationReleased
(Scheduler.Client client, Set<TCSResource<?>> resources) Informs this module about resources being fully released by a client.boolean
hasPreparedAllocation
(Scheduler.Client client, Set<TCSResource<?>> resources) Checks if this module is done preparing the given resources for a client.boolean
mayAllocate
(Scheduler.Client client, Set<TCSResource<?>> resources) Checks if the resulting system state is safe if the given set of resources would be allocated by the given resource user.void
prepareAllocation
(Scheduler.Client client, Set<TCSResource<?>> resources) Lets this module prepare the given resources so they can be allocated to a client.void
setAllocationState
(Scheduler.Client client, Set<TCSResource<?>> alloc, List<Set<TCSResource<?>>> remainingClaim) Informs this module about a client's current allocation state.Von Schnittstelle geerbte Methoden org.opentcs.components.Lifecycle
initialize, isInitialized, terminate
-
Methodendetails
-
setAllocationState
void setAllocationState(@Nonnull Scheduler.Client client, @Nonnull Set<TCSResource<?>> alloc, @Nonnull List<Set<TCSResource<?>>> remainingClaim) Informs this module about a client's current allocation state.- Parameter:
client
- The client.alloc
- The client's currently allocated resources.remainingClaim
- The client's remaining claim.
-
mayAllocate
Checks if the resulting system state is safe if the given set of resources would be allocated by the given resource user.- Parameter:
client
- TheResourceUser
requesting resources set.resources
- The requested resources.- Gibt zurück:
true
if this module thinks the given resources may be allocated for the given client.
-
prepareAllocation
Lets this module prepare the given resources so they can be allocated to a client.- Parameter:
client
- The client the resources are being prepared for.resources
- The resources to be prepared.
-
hasPreparedAllocation
boolean hasPreparedAllocation(@Nonnull Scheduler.Client client, @Nonnull Set<TCSResource<?>> resources) Checks if this module is done preparing the given resources for a client.- Parameter:
client
- The client the resources are being prepared for.resources
- The resources to be checked.- Gibt zurück:
true
if the resoruces are prepared for a client.
-
allocationReleased
Informs this module about resources being fully released by a client.- Parameter:
client
- The client releasing the resources.resources
- The resources being released.
-