Class MemoryService
java.lang.Object
dev.zemco.codegame.execution.memory.MemoryService
- All Implemented Interfaces:
IMemoryService
Implementation of business logic related to
memory.- Author:
- Erik Zemčík
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryService(IMemoryFactory memoryFactory) Creates an instance ofMemoryService. -
Method Summary
Modifier and TypeMethodDescriptiongetConfiguredMemory(ProblemCaseMemorySettings memorySettings) Provides amemoryconfigured using the provided memory settings.
-
Constructor Details
-
MemoryService
Creates an instance ofMemoryService.- Parameters:
memoryFactory- factory used to creatememoryfor configuration- Throws:
IllegalArgumentException- ifmemoryFactoryisnull
-
-
Method Details
-
getConfiguredMemory
Description copied from interface:IMemoryServiceProvides amemoryconfigured using the provided memory settings.This memory can be used for execution and evaluation related to the
problem casethat owns the provided memory settings.- Specified by:
getConfiguredMemoryin interfaceIMemoryService- Parameters:
memorySettings- settings to use to configure the memory- Returns:
- configured memory
-