示例#1
0
        public void parseXml(XmlElement elem)
        {
            clear();

            m_motion = ExportUtil.getXmlAttrStr(elem.Attributes["motion"]);

            XmlNodeList condNodeList = elem.SelectNodes("AnyCondition");
            XmlElement condElem = null;
            XmlCondition cond;
            foreach (XmlNode condNode in condNodeList)
            {
                condElem = (XmlElement)condNode;
                cond = new XmlCondition();
                m_anyCondList.Add(cond);
                cond.xmlState = this;
                cond.parseXml(condElem);
            }
        }
示例#2
0
        public void parseXml(XmlElement elem)
        {
            clear();

            m_motion = ExportUtil.getXmlAttrStr(elem.Attributes["motion"]);

            XmlNodeList  condNodeList = elem.SelectNodes("AnyCondition");
            XmlElement   condElem     = null;
            XmlCondition cond;

            foreach (XmlNode condNode in condNodeList)
            {
                condElem = (XmlElement)condNode;
                cond     = new XmlCondition();
                m_anyCondList.Add(cond);
                cond.xmlState = this;
                cond.parseXml(condElem);
            }
        }
        public void parseXml(XmlElement elem)
        {
            clear();

            m_srcStateName  = ExportUtil.getXmlAttrStr(elem.Attributes["srcstate"]);
            m_destStateName = ExportUtil.getXmlAttrStr(elem.Attributes["deststate"]);

            XmlNodeList  condNodeList = elem.SelectNodes("Condition");
            XmlElement   condElem     = null;
            XmlCondition cond;

            foreach (XmlNode condNode in condNodeList)
            {
                condElem = (XmlElement)condNode;
                cond     = new XmlCondition();
                m_condList.Add(cond);
                cond.xmlStateTransition = this;
                cond.parseXml(condElem);
            }
        }
示例#4
0
        public void parseXml(XmlElement elem)
        {
            clear();

            m_srcStateName = ExportUtil.getXmlAttrStr(elem.Attributes["srcstate"]);
            m_destStateName = ExportUtil.getXmlAttrStr(elem.Attributes["deststate"]);

            XmlNodeList condNodeList = elem.SelectNodes("Condition");
            XmlElement condElem = null;
            XmlCondition cond;
            foreach (XmlNode condNode in condNodeList)
            {
                condElem = (XmlElement)condNode;
                cond = new XmlCondition();
                m_condList.Add(cond);
                cond.xmlStateTransition = this;
                cond.parseXml(condElem);
            }
        }