Esempio n. 1
0
        public virtual void RemoveSimulation(ISimulation simulation)
        {
            if (!UsesSimulation(simulation))
            {
                return;
            }

            _allSimulations.Remove(simulation);

            OutputMappings.RemoveOutputsReferencing(simulation);

            removeLinkedParametersReferencing(simulation);

            removeEmptyIdentificationParameters();

            HasChanged = true;
        }
Esempio n. 2
0
        public override void UpdatePropertiesFrom(IUpdatable source, ICloneManager cloneManager)
        {
            base.UpdatePropertiesFrom(source, cloneManager);
            var sourceParameterIdentification = source as ParameterIdentification;

            if (sourceParameterIdentification == null)
            {
                return;
            }

            Configuration.UpdatePropertiesFrom(sourceParameterIdentification.Configuration, cloneManager);
            IsLoaded = sourceParameterIdentification.IsLoaded;

            _allSimulations.Clear();
            _allSimulations.AddRange(sourceParameterIdentification.AllSimulations);

            OutputMappings.UpdatePropertiesFrom(sourceParameterIdentification.OutputMappings, cloneManager);

            _allIdentificationParameters.Clear();
            sourceParameterIdentification.AllIdentificationParameters.Select(cloneManager.Clone).Each(AddIdentificationParameter);
        }
Esempio n. 3
0
 public virtual bool UsesOutputMapping(OutputMapping outputMapping) => OutputMappings.Contains(outputMapping);
Esempio n. 4
0
 public virtual IEnumerable <OutputMapping> AllOutputMappingsFor(ISimulation simulation) => OutputMappings.AllOutputMappingsFor(simulation);
Esempio n. 5
0
 public virtual IEnumerable <QuantitySelection> AllOutputsMappedFor(ISimulation simulation) => OutputMappings.AllOutputsMappedFor(simulation);
Esempio n. 6
0
 public virtual IEnumerable <DataRepository> AllDataRepositoryMappedFor(ISimulation simulation) => OutputMappings.AllDataRepositoryMappedFor(simulation);
Esempio n. 7
0
 public virtual IEnumerable <OutputMapping> OutputMappingsUsingDataRepository(DataRepository dataRepository) => OutputMappings.OutputMappingsUsingDataRepository(dataRepository);
Esempio n. 8
0
 public virtual bool AnyOutputOfSimulationMapped(ISimulation simulation)
 {
     return(OutputMappings.UsesSimulation(simulation));
 }
Esempio n. 9
0
 public virtual void RemoveOutputMapping(OutputMapping outputMapping)
 {
     OutputMappings.Remove(outputMapping);
     HasChanged = true;
 }
Esempio n. 10
0
 public virtual void AddOutputMapping(OutputMapping outputMapping)
 {
     OutputMappings.Add(outputMapping);
     HasChanged = true;
 }