Exemple #1
0
        private void AddDMIOutStructure(CustomProcedure.DMIProcedureConfig aConfig)
        {
            DataDictionary.Types.Structure aStructure = (DataDictionary.Types.Structure)DataDictionary.Generated.acceptor.getFactory().createStructure();
            aStructure.Name             = aConfig.ProcedureName;
            aStructure.NeedsRequirement = true;
            Item.appendStructures(aStructure);
            StructureTreeNode aStructureTreeNode = new StructureTreeNode(aStructure);

            Nodes.Add(aStructureTreeNode);

            DataDictionary.Types.StructureElement structElemIn = (DataDictionary.Types.StructureElement)DataDictionary.Generated.acceptor.getFactory().createStructureElement();
            structElemIn.Name     = "OutputInformation";
            structElemIn.TypeName = "DMI.OutputInformation";
            structElemIn.Mode     = DataDictionary.Generated.acceptor.VariableModeEnumType.aIncoming;
            aStructureTreeNode.AddStructureElement(structElemIn);

            SortSubNodes();
        }
Exemple #2
0
        public void CreateCustomStructure(CustomProcedure.DMIProcedureConfig aConfig)
        {
            switch (aConfig.Type)
            {
            case (CustomProcedure.CustomProcedureType.DMI_In):
            {
                AddDMIInStructure(aConfig);
                break;
            }

            case (CustomProcedure.CustomProcedureType.DMI_Out):
            {
                AddDMIOutStructure(aConfig);
                break;
            }

            default:
            {
                break;
            }
            }
        }