Пример #1
0
        public override void UpdateFrom(BuildingBlockMetaData sourceChild, ISession session)
        {
            var sourceSimulation = sourceChild as SimulationMetaData;

            if (sourceSimulation == null)
            {
                return;
            }
            base.UpdateFrom(sourceChild, session);
            SimulationMode = sourceSimulation.SimulationMode;

            BuildingBlocks.UpdateFrom <string, UsedBuildingBlockMetaData>(sourceSimulation.BuildingBlocks, session);
            updateObservedDataFrom(sourceSimulation.UsedObservedData);


            //Update results and charts only if simulation is loaded
            if (!sourceChild.IsLoaded)
            {
                return;
            }

            updateResultsFrom(sourceSimulation.SimulationResults, session);
            updateChartsFrom(sourceSimulation.Charts, session);
            updateSimulationAnalysesFrom(sourceSimulation.SimulationAnalyses, session);
        }
        public override void UpdateFrom(BuildingBlockMetaData sourceChild, ISession session)
        {
            base.UpdateFrom(sourceChild, session);
            var sourceProtocol = sourceChild as ProtocolMetaData;

            if (sourceProtocol == null)
            {
                return;
            }
            ProtocolMode = sourceProtocol.ProtocolMode;
        }
        public override void UpdateFrom(BuildingBlockMetaData sourceChild, ISession session)
        {
            base.UpdateFrom(sourceChild, session);
            var sourceSimulationSubjectMetaData = sourceChild as SimulationSubjectMetaData;

            if (sourceSimulationSubjectMetaData == null)
            {
                return;
            }

            ExpressionProfileIds = sourceSimulationSubjectMetaData.ExpressionProfileIds;
        }
        public override void UpdateFrom(BuildingBlockMetaData sourceChild, ISession session)
        {
            base.UpdateFrom(sourceChild, session);
            var sourceFormulationMetaData = sourceChild as FormulationMetaData;

            if (sourceFormulationMetaData == null)
            {
                return;
            }

            FormulationType = sourceFormulationMetaData.FormulationType;
        }
Пример #5
0
 public virtual void AddBuildingBlock(BuildingBlockMetaData buildingBlock)
 {
     BuildingBlocks.Add(buildingBlock);
 }