Solution Cache Ifc
A solution cache should be designed to efficiently look up a solution based on a given set of input settings.
Inheritors
Properties
If true input infeasible solutions are allowed to be saved in the cache. If false, input-infeasible solutions should not be saved in the cache. Implementors are free to decide how to handle what to do with unsaved input infeasible solutions. The default is false (do not allow input infeasible solutions to be saved)
A rule to govern which solution should be evicted when the cache capacity is met.
Functions
Places the solution into the cache. It is important that implementors handle the insertion of infeasible inputs and ensure that the input map is associated with the solution
Places all input-solution pairs into the cache
Looks up and removes the solution associated with the supplied input map. Null is returned if there is no associated solution. It is important that implementor handle the reduced size relative to the cache.
Retrieves the solutions associated with the requests
Allows use of bracket operator for setting values