Beispiel #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);
        }
Beispiel #2
0
        public byte GetRecorderChannelCount()
        {
            byte result = 0;

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

            return(result);
        }
Beispiel #3
0
        public Parameter GetRecorderChannelParameter(byte channelNumber)
        {
            Parameter result = null;

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

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

            TriggerCondition.Resolve(parameterList);
        }