示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CyPhyTypeFactory"/> class.
        /// </summary>
        /// <param name="rootMeta">Given meta model</param>
        public CyPhyTypeFactory(MgaMetaProject rootMeta)
        {
            this.TestBenchMeta          = rootMeta.RootFolder.DefinedFCOByName["TestBench", true].MetaRef;
            this.CADTestBenchMeta       = rootMeta.RootFolder.DefinedFCOByName["CADTestBench", true].MetaRef;
            this.BlastTestBenchMeta     = rootMeta.RootFolder.DefinedFCOByName["BlastTestBench", true].MetaRef;
            this.BallisticTestBenchMeta = rootMeta.RootFolder.DefinedFCOByName["BallisticTestBench", true].MetaRef;
            this.CFDTestBenchMeta       = rootMeta.RootFolder.DefinedFCOByName["CFDTestBench", true].MetaRef;
            this.KinematicTestBenchMeta = rootMeta.RootFolder.DefinedFCOByName["KinematicTestBench", true].MetaRef;
            this.CarTestBenchMeta       = rootMeta.RootFolder.DefinedFCOByName["CarTestBench", true].MetaRef;

            this.ComponentMeta         = rootMeta.RootFolder.DefinedFCOByName["Component", true].MetaRef;
            this.ComponentRefMeta      = rootMeta.RootFolder.DefinedFCOByName["ComponentRef", true].MetaRef;
            this.ComponentAssemblyMeta = rootMeta.RootFolder.DefinedFCOByName["ComponentAssembly", true].MetaRef;

            this.DesignContainerMeta = rootMeta.RootFolder.DefinedFCOByName["DesignContainer", true].MetaRef;
            this.CWCMeta             = rootMeta.RootFolder.DefinedFCOByName["CWC", true].MetaRef;
            this.ConfigurationsMeta  = rootMeta.RootFolder.DefinedFCOByName["Configurations", true].MetaRef;

            this.DecisionGroupMeta    = rootMeta.RootFolder.DefinedFCOByName["DecisionGroup", true].MetaRef;
            this.VisualConstraintMeta = rootMeta.RootFolder.DefinedFCOByName["VisualConstraint", true].MetaRef;
            this.And_operatorMeta     = rootMeta.RootFolder.DefinedFCOByName["And_operator", true].MetaRef;
            this.Not_operatorMeta     = rootMeta.RootFolder.DefinedFCOByName["Not_operator", true].MetaRef;
            this.Or_operatorMeta      = rootMeta.RootFolder.DefinedFCOByName["Or_operator", true].MetaRef;

            // will be used to query is derived from relationship
            this.TestInjectionPointsMeta = new HashSet <int>();
            this.TestInjectionPointsMeta.Add(rootMeta.RootFolder.DefinedFCOByName["TestInjectionPoint", true].MetaRef);
            this.TestInjectionPointsMeta.Add(rootMeta.RootFolder.DefinedFCOByName["BallisticTarget", true].MetaRef);
            this.TestInjectionPointsMeta.Add(rootMeta.RootFolder.DefinedFCOByName["CriticalComponent", true].MetaRef);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="CyPhyTypeFactory"/> class.
 /// </summary>
 /// <param name="rootMeta">Given meta model</param>
 public CyPhyTypeFactory(MgaMetaProject rootMeta)
 {
     this.ComponentMeta = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.Component).Name, true].MetaRef;
     this.ComponentRefMeta = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.ComponentRef).Name, true].MetaRef;
     this.ComponentAssemblyMeta = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.ComponentAssembly).Name, true].MetaRef;
     this.TestComponentMeta = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.TestComponent).Name, true].MetaRef;
     this.TestBenchMeta = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.TestBench).Name, true].MetaRef;
     this.ConnectorMeta = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.Connector).Name, true].MetaRef;
     this.ModelicaConnectorMeta = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.ModelicaConnector).Name, true].MetaRef;
     this.ModelicaModelMeta = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.ModelicaModel).Name, true].MetaRef;
     this.ParameterMeta = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.Parameter).Name, true].MetaRef;
     this.PropertyMeta = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.Property).Name, true].MetaRef;
     this.PostProcessingMeta = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.PostProcessing).Name, true].MetaRef;
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CyPhyTypeFactory"/> class.
 /// </summary>
 /// <param name="rootMeta">Given meta model</param>
 public CyPhyTypeFactory(MgaMetaProject rootMeta)
 {
     this.ComponentMeta         = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.Component).Name, true].MetaRef;
     this.ComponentRefMeta      = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.ComponentRef).Name, true].MetaRef;
     this.ComponentAssemblyMeta = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.ComponentAssembly).Name, true].MetaRef;
     this.TestComponentMeta     = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.TestComponent).Name, true].MetaRef;
     this.TestBenchMeta         = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.TestBench).Name, true].MetaRef;
     this.ConnectorMeta         = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.Connector).Name, true].MetaRef;
     this.ModelicaConnectorMeta = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.ModelicaConnector).Name, true].MetaRef;
     this.ModelicaModelMeta     = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.ModelicaModel).Name, true].MetaRef;
     this.ParameterMeta         = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.Parameter).Name, true].MetaRef;
     this.PropertyMeta          = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.Property).Name, true].MetaRef;
     this.PostProcessingMeta    = rootMeta.RootFolder.DefinedFCOByName[typeof(CyPhy.PostProcessing).Name, true].MetaRef;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="CyPhyTypeFactory"/> class.
        /// </summary>
        /// <param name="rootMeta">Given meta model</param>
        public CyPhyTypeFactory(MgaMetaProject rootMeta)
        {
            this.TestBenchMeta = rootMeta.RootFolder.DefinedFCOByName["TestBench", true].MetaRef;
            this.CADTestBenchMeta = rootMeta.RootFolder.DefinedFCOByName["CADTestBench", true].MetaRef;
            this.BlastTestBenchMeta = rootMeta.RootFolder.DefinedFCOByName["BlastTestBench", true].MetaRef;
            this.BallisticTestBenchMeta = rootMeta.RootFolder.DefinedFCOByName["BallisticTestBench", true].MetaRef;
            this.CFDTestBenchMeta = rootMeta.RootFolder.DefinedFCOByName["CFDTestBench", true].MetaRef;
            this.KinematicTestBenchMeta = rootMeta.RootFolder.DefinedFCOByName["KinematicTestBench", true].MetaRef;

            this.ComponentMeta = rootMeta.RootFolder.DefinedFCOByName["Component", true].MetaRef;
            this.ComponentRefMeta = rootMeta.RootFolder.DefinedFCOByName["ComponentRef", true].MetaRef;
            this.ComponentAssemblyMeta = rootMeta.RootFolder.DefinedFCOByName["ComponentAssembly", true].MetaRef;

            this.DesignContainerMeta = rootMeta.RootFolder.DefinedFCOByName["DesignContainer", true].MetaRef;
            this.CWCMeta = rootMeta.RootFolder.DefinedFCOByName["CWC", true].MetaRef;
            this.ConfigurationsMeta = rootMeta.RootFolder.DefinedFCOByName["Configurations", true].MetaRef;

            // will be used to query is derived from relationship
            this.TestInjectionPointsMeta = new HashSet<int>();
            this.TestInjectionPointsMeta.Add(rootMeta.RootFolder.DefinedFCOByName["TestInjectionPoint", true].MetaRef);
            this.TestInjectionPointsMeta.Add(rootMeta.RootFolder.DefinedFCOByName["BallisticTarget", true].MetaRef);
            this.TestInjectionPointsMeta.Add(rootMeta.RootFolder.DefinedFCOByName["CriticalComponent", true].MetaRef);
        }