public ModelContainerMoleculeRepository(IFlatModelContainerMoleculeRepository flatModelContainerMoleculeRepo, IFlatModelRepository flatModelRepo, IFlatContainerRepository flatContainerRepo) { _flatModelContainerMoleculeRepo = flatModelContainerMoleculeRepo; _flatModelRepo = flatModelRepo; _flatContainerRepo = flatContainerRepo; _moleculesForModel = new Cache <string, List <string> >(); _mcmProperties = new Cache <ModelContainerMoleculeKey, FlatModelContainerMolecule>(); }
public StaticReactionRepository(IFlatModelRepository flatModelRepository, IFlatProcessRepository flatProcessesRepository, IFlatModelProcessRepository modelProcessRepository, IParameterContainerTask parameterContainerTask, IFlatProcessToActiveProcessMapper activeProcessMapper) { _flatModelRepository = flatModelRepository; _flatProcessesRepository = flatProcessesRepository; _modelProcessRepository = modelProcessRepository; _parameterContainerTask = parameterContainerTask; _activeProcessMapper = activeProcessMapper; _reactionsByModel = new Cache <string, IList <PKSimReaction> >(); _allReactions = new Cache <string, PKSimReaction>(r => r.Name); }