Пример #1
0
        private NodeDevice(ReadOnlyDictionary <FieldIdentifier, FieldBase> Fields,
                           ReadOnlyCollection <NodeBase> Children)
            : base(Fields, Children)
        {
            NodeDeviceChildren         = new TypedChildCollection <NodeDevice, NodeDevice>(this);
            NodeDiscreteInputChildren  = new TypedChildCollection <NodeDiscreteInput, NodeDevice>(this);
            NodeDiscreteOutputChildren = new TypedChildCollection <NodeDiscreteOutput, NodeDevice>(this);
            NodeAnalogInputChildren    = new TypedChildCollection <NodeAnalogInput, NodeDevice>(this);
            NodeAnalogOutputChildren   = new TypedChildCollection <NodeAnalogOutput, NodeDevice>(this);
            NodeStringInputChildren    = new TypedChildCollection <NodeStringInput, NodeDevice>(this);
            NodeStringOutputChildren   = new TypedChildCollection <NodeStringOutput, NodeDevice>(this);

            // Validation
            if (Code == null)
            {
                throw new ArgumentNullException(m_CodeName);
            }
            if (TypeId == null)
            {
                throw new ArgumentNullException(m_TypeIdName);
            }
            if (Address == null)
            {
                throw new ArgumentNullException(m_AddressName);
            }
            if (Configuration == null)
            {
                throw new ArgumentNullException(m_ConfigurationName);
            }
            if (DeviceName == null)
            {
                throw new ArgumentNullException(m_DeviceNameName);
            }
        }
Пример #2
0
        private NodeDevice(ReadOnlyDictionary<FieldIdentifier, FieldBase> Fields,
            ReadOnlyCollection<NodeBase> Children)
            : base(Fields, Children)
        {
            NodeDeviceChildren = new TypedChildCollection<NodeDevice, NodeDevice>(this);
            NodeDiscreteInputChildren = new TypedChildCollection<NodeDiscreteInput, NodeDevice>(this);
            NodeDiscreteOutputChildren = new TypedChildCollection<NodeDiscreteOutput, NodeDevice>(this);
            NodeAnalogInputChildren = new TypedChildCollection<NodeAnalogInput, NodeDevice>(this);
            NodeAnalogOutputChildren = new TypedChildCollection<NodeAnalogOutput, NodeDevice>(this);
            NodeStringInputChildren = new TypedChildCollection<NodeStringInput, NodeDevice>(this);
            NodeStringOutputChildren = new TypedChildCollection<NodeStringOutput, NodeDevice>(this);

            // Validation
            if (Code == null)
            {
                throw new ArgumentNullException(m_CodeName);
            }
            if (TypeId == null)
            {
                throw new ArgumentNullException(m_TypeIdName);
            }
            if (Address == null)
            {
                throw new ArgumentNullException(m_AddressName);
            }
            if (Configuration == null)
            {
                throw new ArgumentNullException(m_ConfigurationName);
            }
            if (DeviceName == null)
            {
                throw new ArgumentNullException(m_DeviceNameName);
            }
        }
Пример #3
0
        private NodeSolution(ReadOnlyDictionary<FieldIdentifier, FieldBase> Fields,
            ReadOnlyCollection<NodeBase> Children)
            : base(Fields, Children)
        {
            NodeRuntimeApplicationChildren = new TypedChildCollection<NodeRuntimeApplication, NodeSolution>(this);

            //validation
            if (SolutionName == null)
            {
                throw new ArgumentNullException(m_SolutionNameName);
            }
            if (Layout == null)
            {
                throw new ArgumentNullException(m_LayoutName);
            }
        }
Пример #4
0
        private NodeSolution(ReadOnlyDictionary <FieldIdentifier, FieldBase> Fields,
                             ReadOnlyCollection <NodeBase> Children)
            : base(Fields, Children)
        {
            NodeRuntimeApplicationChildren = new TypedChildCollection <NodeRuntimeApplication, NodeSolution>(this);

            //validation
            if (SolutionName == null)
            {
                throw new ArgumentNullException(m_SolutionNameName);
            }
            if (Layout == null)
            {
                throw new ArgumentNullException(m_LayoutName);
            }
        }
Пример #5
0
        private NodePageCollection(ReadOnlyDictionary <FieldIdentifier, FieldBase> Fields,
                                   ReadOnlyCollection <NodeBase> Children)
            : base(Fields, Children)
        {
            NodePageCollectionChildren = new TypedChildCollection <NodePageCollection, NodePageCollection>(this);
            NodePageChildren           = new TypedChildCollection <NodePage, NodePageCollection>(this);

            //validation
            if (PageCollectionName == null)
            {
                throw new ArgumentNullException(m_PageCollectionNameName);
            }
            if (LogicRoot == null)
            {
                throw new ArgumentNullException(m_LogicRootName);
            }
        }
Пример #6
0
        private NodePageCollection(ReadOnlyDictionary<FieldIdentifier, FieldBase> Fields,
            ReadOnlyCollection<NodeBase> Children)
            : base(Fields, Children)
        {
            NodePageCollectionChildren = new TypedChildCollection<NodePageCollection, NodePageCollection>(this);
            NodePageChildren = new TypedChildCollection<NodePage, NodePageCollection>(this);

            //validation
            if (PageCollectionName == null)
            {
                throw new ArgumentNullException(m_PageCollectionNameName);
            }
            if (LogicRoot == null)
            {
                throw new ArgumentNullException(m_LogicRootName);
            }
        }
Пример #7
0
        private NodeInstruction(ReadOnlyDictionary<FieldIdentifier, FieldBase> Fields,
            ReadOnlyCollection<NodeBase> Children)
            : base(Fields, Children)
        {
            NodeInstructionChildren = new TypedChildCollection<NodeInstruction, NodeInstruction>(this);
            NodeSignalInChildren = new TypedChildCollection<NodeSignalIn, NodeInstruction>(this);
            NodeSignalChildren = new TypedChildCollection<NodeSignal, NodeInstruction>(this);

            // validation
            if (InstructionType == null)
            {
                throw new ArgumentNullException(m_InstructionTypeName);
            }
            if (Comment == null)
            {
                throw new ArgumentNullException(m_CommentName);
            }
        }
Пример #8
0
        private NodeInstruction(ReadOnlyDictionary <FieldIdentifier, FieldBase> Fields,
                                ReadOnlyCollection <NodeBase> Children)
            : base(Fields, Children)
        {
            NodeInstructionChildren = new TypedChildCollection <NodeInstruction, NodeInstruction>(this);
            NodeSignalInChildren    = new TypedChildCollection <NodeSignalIn, NodeInstruction>(this);
            NodeSignalChildren      = new TypedChildCollection <NodeSignal, NodeInstruction>(this);

            // validation
            if (InstructionType == null)
            {
                throw new ArgumentNullException(m_InstructionTypeName);
            }
            if (Comment == null)
            {
                throw new ArgumentNullException(m_CommentName);
            }
        }
Пример #9
0
        private NodePage(ReadOnlyDictionary <FieldIdentifier, FieldBase> Fields,
                         ReadOnlyCollection <NodeBase> Children)
            : base(Fields, Children)
        {
            NodeInstructionGroupChildren = new TypedChildCollection <NodeInstructionGroup, NodePage>(this);

            //validation
            if (PageId == null)
            {
                throw new ArgumentNullException(m_PageIdName);
            }
            if (PageName == null)
            {
                throw new ArgumentNullException(m_PageNameName);
            }
            if (Comment == null)
            {
                throw new ArgumentNullException(m_CommentName);
            }
        }
        private NodeInstructionGroup(ReadOnlyDictionary <FieldIdentifier, FieldBase> Fields,
                                     ReadOnlyCollection <NodeBase> Children)
            : base(Fields, Children)
        {
            NodeInstructionChildren = new TypedChildCollection <NodeInstruction, NodeInstructionGroup>(this);
            m_InstructionGroupTry   = new SingleChild <NodeInstructionGroupTry, NodeInstructionGroup>(this);

            // validation
            if (Language == null)
            {
                throw new ArgumentNullException(m_LanguageName);
            }
            if (InstructionGroupTry == null)
            {
                throw new ArgumentNullException(m_InstructionGroupTryName);
            }
            if (Comment == null)
            {
                throw new ArgumentNullException(m_CommentName);
            }
        }
Пример #11
0
        private NodeInstructionGroup(ReadOnlyDictionary<FieldIdentifier, FieldBase> Fields,
            ReadOnlyCollection<NodeBase> Children)
            : base(Fields, Children)
        {
            NodeInstructionChildren = new TypedChildCollection<NodeInstruction, NodeInstructionGroup>(this);
            m_InstructionGroupTry = new SingleChild<NodeInstructionGroupTry, NodeInstructionGroup>(this);

            // validation
            if (Language == null)
            {
                throw new ArgumentNullException(m_LanguageName);
            }
            if (InstructionGroupTry == null)
            {
                throw new ArgumentNullException(m_InstructionGroupTryName);
            }
            if (Comment == null)
            {
                throw new ArgumentNullException(m_CommentName);
            }
        }
Пример #12
0
        private NodeDriver(ReadOnlyDictionary <FieldIdentifier, FieldBase> Fields,
                           ReadOnlyCollection <NodeBase> Children)
            : base(Fields, Children)
        {
            NodeDeviceChildren = new TypedChildCollection <NodeDevice, NodeDriver>(this);

            // Validation
            if (TypeId == null)
            {
                throw new ArgumentNullException(m_TypeIdName);
            }
            if (Address == null)
            {
                throw new ArgumentNullException(m_AddressName);
            }
            if (Running == null)
            {
                throw new ArgumentNullException(m_RunningName);
            }
            if (Configuration == null)
            {
                throw new ArgumentNullException(m_ConfigurationName);
            }
        }
Пример #13
0
        private NodeDriver(ReadOnlyDictionary<FieldIdentifier, FieldBase> Fields,
            ReadOnlyCollection<NodeBase> Children)
            : base(Fields, Children)
        {
            NodeDeviceChildren = new TypedChildCollection<NodeDevice, NodeDriver>(this);

            // Validation
            if (TypeId == null)
            {
                throw new ArgumentNullException(m_TypeIdName);
            }
            if (Address == null)
            {
                throw new ArgumentNullException(m_AddressName);
            }
            if (Running == null)
            {
                throw new ArgumentNullException(m_RunningName);
            }
            if (Configuration == null)
            {
                throw new ArgumentNullException(m_ConfigurationName);
            }
        }
Пример #14
0
 private NodePublicKeyRing(ReadOnlyDictionary <FieldIdentifier, FieldBase> Fields,
                           ReadOnlyCollection <NodeBase> Children)
     : base(Fields, Children)
 {
     Keys = new TypedChildCollection <NodePublicKey, NodePublicKeyRing>(this);
 }
Пример #15
0
 private NodePublicKeyRing(ReadOnlyDictionary<FieldIdentifier, FieldBase> Fields,
     ReadOnlyCollection<NodeBase> Children)
     : base(Fields, Children)
 {
     Keys = new TypedChildCollection<NodePublicKey, NodePublicKeyRing>(this);
 }
 private NodeDeviceConfiguration(ReadOnlyDictionary<FieldIdentifier, FieldBase> Fields,
     ReadOnlyCollection<NodeBase> Children)
     : base(Fields, Children)
 {
     NodeDriverChildren = new TypedChildCollection<NodeDriver, NodeDeviceConfiguration>(this);
 }
Пример #17
0
 private NodePeerList(ReadOnlyDictionary <FieldIdentifier, FieldBase> Fields,
                      ReadOnlyCollection <NodeBase> Children)
     : base(Fields, Children)
 {
     Peers = new TypedChildCollection <NodePeer, NodePeerList>(this);
 }
 private NodeInstructionGroupTry(ReadOnlyDictionary<FieldIdentifier, FieldBase> Fields,
     ReadOnlyCollection<NodeBase> Children)
     : base(Fields, Children)
 {
     NodeInstructionChildren = new TypedChildCollection<NodeInstruction, NodeInstructionGroupTry>(this);
 }
Пример #19
0
 private NodeInstructionGroupTry(ReadOnlyDictionary <FieldIdentifier, FieldBase> Fields,
                                 ReadOnlyCollection <NodeBase> Children)
     : base(Fields, Children)
 {
     NodeInstructionChildren = new TypedChildCollection <NodeInstruction, NodeInstructionGroupTry>(this);
 }
Пример #20
0
 private NodeDeviceConfiguration(ReadOnlyDictionary <FieldIdentifier, FieldBase> Fields,
                                 ReadOnlyCollection <NodeBase> Children)
     : base(Fields, Children)
 {
     NodeDriverChildren = new TypedChildCollection <NodeDriver, NodeDeviceConfiguration>(this);
 }