Exemplo n.º 1
0
        public bool Parse(XmlNode node)
        {
            bool result = true;

            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.Name == "channelSelection")
                {
                    var channelSelection = new ChannelSelection();

                    if (!channelSelection.Parse(childNode))
                    {
                        result = false;
                        break;
                    }

                    ChannelSelection = channelSelection;
                }
                else if (childNode.Name == "triggerCondition")
                {
                    var triggerCondition = new TriggerCondition();

                    if (!triggerCondition.Parse(childNode))
                    {
                        result = false;
                        break;
                    }

                    TriggerCondition = triggerCondition;
                }
            }

            return(result);
        }
Exemplo n.º 2
0
        public byte GetRecorderChannelCount()
        {
            byte result = 0;

            if (ChannelSelection != null)
            {
                result = ChannelSelection.GetRecorderChannelCount();
            }

            return(result);
        }
Exemplo n.º 3
0
        public Parameter GetRecorderChannelParameter(byte channelNumber)
        {
            Parameter result = null;

            if (ChannelSelection != null)
            {
                result = ChannelSelection.GetRecorderChannelParameter(channelNumber);
            }

            return(result);
        }
Exemplo n.º 4
0
        public void Resolve(List <Channel> channelsChannels, XddParameterList parameterList)
        {
            ChannelSelection.Resolve(channelsChannels);

            TriggerCondition.Resolve(parameterList);
        }