public class DefaultRequirementMatcher extends Object implements RequirementMatcher
RequirementMatcher
. This matcher finds the first requirement
that a) is not unfulfilled and B) matches the resource profile.Constructor and Description |
---|
DefaultRequirementMatcher() |
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.
|
public Optional<ResourceProfile> match(ResourceProfile resourceProfile, ResourceCounter totalRequirements, java.util.function.Function<ResourceProfile,Integer> numAssignedResourcesLookup)
RequirementMatcher
match
in interface RequirementMatcher
resourceProfile
- resource profile to matchtotalRequirements
- the total requirementsnumAssignedResourcesLookup
- a lookup for how many resources have already been assigned
to a requirementCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.