2using System.Collections.Generic;
5using System.Threading.Tasks;
27 if (
string.IsNullOrEmpty(strFile))
28 throw new Exception(
"You must specify a file.");
32 if (
string.IsNullOrEmpty(strFile))
33 throw new Exception(
"You must specify a file.");
The FileMemoryCollection is used during debugging to load from and save to file.
The MemoryCollectionFactory is used to create various memory collection types.
static IMemoryCollection CreateMemory(MEMTYPE type, int nMax, float fAlpha=0, string strFile=null)
CreateMemory creates the memory collection type based on the MEMTYPE parameter.
The PrioritizedMemoryCollection provides a sampling based on prioritizations.
The RandomMemoryCollection is used to randomly sample the collection of items.
The IMemoryCollection interface is implemented by all memory collection types.
MEMTYPE
Specifies the type of memory collection to use.