예제 #1
0
        public override string ToSerialize(Dictionary <string, string> elements)
        {
            string plan = string.Empty;

            elements = (elements is Dictionary <string, string>) ? elements : new Dictionary <string, string>();

            // taking appart the senses and putting them into the right form


            plan = String.Format("({0} (trigger {1}) {2} {3})", name, trigger.ToSerialize(elements), element.ToSerialize(elements), this.maxRetries);


            return(plan);
        }
예제 #2
0
        public override string ToSerialize(Dictionary <string, string> elements)
        {
            string plan = string.Empty;

            elements = (elements is Dictionary <string, string>) ? elements : new Dictionary <string, string>();

            plan = String.Format("({0} (trigger {1}) {2} {3})", name, trigger.ToSerialize(elements), element.ToSerialize(elements), POSH.sys.parse.LAPParser.GetTimeString(this.maxFreq));


            return(plan);
        }