private async Task addProcessToProcessSelection(CompoundProcessesSelection compoundProcessesSelection, CompoundProcessSelection compoundProcessSelection, Model.CompoundProcess process)
        {
            var processSelectionGroup = selectionGroupFor(compoundProcessesSelection, process);
            var processSelection      = await _processMappingMapper.MapToModel(compoundProcessSelection, process);

            processSelectionGroup.AddProcessSelection(processSelection);
        }
Esempio n. 2
0
        private async Task addProcessToProcessSelection(CompoundProcessesSelection compoundProcessesSelection, CompoundProcessSelection snapshotCompoundProcessSelection, Model.CompoundProcess process, SnapshotContext snapshotContext)
        {
            var processSelectionGroup = selectionGroupFor(compoundProcessesSelection, process);
            var processContext        = new CompoundProcessSnapshotContext(process, snapshotContext);
            var processSelection      = await _processMappingMapper.MapToModel(snapshotCompoundProcessSelection, processContext);

            processSelectionGroup.AddProcessSelection(processSelection);
        }
Esempio n. 3
0
        private async Task <InteractionSelection> interactionSelectionFrom(CompoundProcessSelection snapshotInteraction, ISimulationSubject simulationSubject, PKSimProject project)
        {
            var process = findProcess(project, snapshotInteraction, simulationSubject);

            if (process == null)
            {
                return(null);
            }

            var processSelection = await _processMappingMapper.MapToModel(snapshotInteraction, process);

            return(processSelection.DowncastTo <InteractionSelection>());
        }
Esempio n. 4
0
        private async Task <InteractionSelection> interactionSelectionFrom(CompoundProcessSelection snapshotInteraction, PKSimProject project)
        {
            var process = findProcess(project, snapshotInteraction);

            if (process == null)
            {
                _logger.AddWarning(PKSimConstants.Error.ProcessNotFoundInCompound(snapshotInteraction.Name, snapshotInteraction.CompoundName));
                return(null);
            }

            var processSelection = await _processMappingMapper.MapToModel(snapshotInteraction, process);

            return(processSelection.DowncastTo <InteractionSelection>());
        }