public static DynamicEOMS GetEomClass(XmlNode dynamicStateXMLNode) { string eomsType = dynamicStateXMLNode["EOMS"].GetAttribute("EOMSType"); DynamicEOMS Eoms = (eomsType == "scripted") ? (DynamicEOMS)(new ScriptedEOMS(dynamicStateXMLNode["EOMS"])) : new OrbitalEOMS(); return(Eoms); }
public DynamicState(DynamicStateType type, DynamicEOMS eoms, Vector initialConditions) { _stateData.Add(0.0, initialConditions); Type = type; Eoms = eoms; //_stateDataTimeStep = stateDataTimeStep; }