Interface PumpOpLimitAware
- All Known Implementing Classes:
DispenseAssembly
,PumpBoard
public interface PumpOpLimitAware
Interface for a
Board
, Assembly
or Nozzle
to allow
the object to place limits on the number of pumps that can be run
concurrently.- Since:
- 1.0
- Version:
- 2024-07-24
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkPumpOpLimits
(List<String> requests) Check the list of requests and return true if they are all allowed to run concurrently.
-
Method Details
-
checkPumpOpLimits
Check the list of requests and return true if they are all allowed to run concurrently. A request is a string which may be null or a name. By default, tpour and vpour have limit grants with no request type so they will appear as null entries in the list. This can be used for simple count logic. If there is a need to limit based on other criteria such as power or pump types, the limit grant can include that information as the grant value and those values will be the strings in the request list. This allows developers to create very complex limit policies without needing to create a new type of grant.- Parameters:
requests
- the grant requests to check
-