public interface RequirementMatcher
Modifier and Type | Method and Description |
---|---|
Optional<ResourceProfile> |
match(ResourceProfile resourceProfile,
ResourceCounter totalRequirements,
java.util.function.Function<ResourceProfile,Integer> numAssignedResourcesLookup)
Attempts to match the given resource profile with one of the given requirements.
|
Optional<ResourceProfile> match(ResourceProfile resourceProfile, ResourceCounter totalRequirements, java.util.function.Function<ResourceProfile,Integer> numAssignedResourcesLookup)
resourceProfile
- resource profile to matchtotalRequirements
- the total requirementsnumAssignedResourcesLookup
- a lookup for how many resources have already been assigned
to a requirementCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.