public override string ToXml()
        {
            // Writes this element into an xml string
            string toReturn = "<" + ElementType + " TargetName=\"" + TargetName + "\" TargetType=\"" + Enum.GetName(typeof(TargetType), TargetType) + "\"";

            toReturn += " TaskType=\"" + Enum.GetName(typeof(TaskType), TaskType) + "\" MaxTimes=\"" + MaxTimes + "\" Value=\"" + Value + "\">";
            toReturn += Position.ToXml();
            toReturn += "</" + ElementType + ">";
            return(toReturn);
        }
        public override string ToXml()
        {
            // Serializes asset to xml string
            string toReturn = "<" + ElementType + " name=\"" + Name + "\" assetId=\"" + Id + "\">";

            toReturn += Position.ToXml();
            foreach (SubsystemElement sub in Subsystems)
            {
                toReturn += sub.ToXml();
            }
            foreach (ConstraintElement cons in Constraints)
            {
                toReturn += cons.ToXml();
            }
            toReturn += "</" + ElementType + ">";
            return(toReturn);
        }