public static EOMS GetEomClass(XmlNode dynamicStateXMLNode) { EOMS Eoms = new OrbitalEOMS(); //default is orbitaleoms string eomsType = dynamicStateXMLNode["EOMS"].GetAttribute("EOMSType"); if (eomsType == "scripted") Eoms = new ScriptedEOMS(dynamicStateXMLNode["EOMS"]); return Eoms; }
public static EOMS GetEomClass(XmlNode dynamicStateXMLNode) { EOMS Eoms = new OrbitalEOMS(); //default is orbitaleoms string eomsType = dynamicStateXMLNode["EOMS"].GetAttribute("EOMSType"); if (eomsType == "scripted") { Eoms = new ScriptedEOMS(dynamicStateXMLNode["EOMS"]); } return(Eoms); }