/// <summary> /// Remove from this store any results belonging to the specfied case. /// </summary> /// <param name="rCase"></param> public void ClearCaseResults(ResultsCase rCase) { foreach (var kvp in this) { kvp.Value.Remove(rCase); } }
private void writeResultCase(XmlWriter xml, ResultsCase rCase) { xml.WriteStartElement("Result_Case"); xml.WriteAttributeString("ID", rCase.Id.ToString()); xml.WriteAttributeString("FullPath", rCase.FullPath); xml.WriteAttributeString("IsLoaded", rCase.IsLoaded.ToString()); xml.WriteEndElement(); }
/// <summary> /// Calculate the deformed centreline geometry of a linear element /// </summary> /// <param name="element"></param> /// <returns></returns> public Curve DeformedGeometry(LinearElement element, ResultsCase rCase) { var sNode = element.StartNode; var eNode = element.EndNode; Vector sDef = this[sNode, rCase]?.GetMaxDisplacementVector() ?? Vector.Zero; Vector eDef = this[eNode, rCase]?.GetMaxDisplacementVector() ?? Vector.Zero; // TODO: Add in offsets + rotation // TODO: Add in element deflection return(new Line(sNode.Position + sDef, sNode.Position + eDef)); }
private void readResultCases(XmlNode xml) { if ("T-Result_Cases".Equals(xml.Name)) { foreach (XmlNode child in xml.ChildNodes) { if ("Result_Case".Equals(child.Name)) { ResultsCase rc; int id = int.Parse(Deserializer.readAttribute(child, "ID")); string fullPath = Deserializer.readAttribute(child, "FullPath"); rc = new ResultsCase(id, fullPath); rc.IsLoaded = bool.Parse(Deserializer.readAttribute(child, "IsLoaded", "True")); results.ResultsCases.Add(rc); } } } }
public bool Remove(ResultsCase rCase) { throw new NotImplementedException(); }
public ICaseResults Get(ResultsCase rCase) { throw new NotImplementedException(); }
internal float[] GetModalPeriods(ResultsCase rcase) { if (rcase == null || modalPeriods == null) return null; return modalPeriods[rcase.Id]; }
/// <summary> /// Get the stored results (if any) of the specified type for the /// specified linear element and case. /// </summary> /// <param name="element"></param> /// <param name="rCase"></param> /// <param name="type"></param> /// <returns></returns> public LinearIntervalDataSet this[LinearElement element, ResultsCase rCase, LinearElementResultTypes type] { get { return(this[element, rCase]?[type]); } }
/// <summary> /// Get the stored results (if any) for the specified linear /// element and case. /// </summary> /// <param name="element"></param> /// <param name="rCase"></param> /// <returns></returns> public CaseLinearElementResults this[LinearElement element, ResultsCase rCase] { get { return(this[element]?[rCase]); } }
/// <summary> /// Get the stored result (if any) of the specified type for /// the specified node and case. /// </summary> /// <param name="node"></param> /// <param name="rCase"></param> /// <param name="type"></param> /// <returns></returns> public Interval this[Node node, ResultsCase rCase, NodeResultTypes type] { get { return(this[node, rCase]?[type] ?? Interval.Unset); } }
/// <summary> /// Get the stored results (if any) for the specified node and /// case. /// </summary> /// <param name="node"></param> /// <param name="rCase"></param> /// <returns></returns> public CaseNodeResults this[Node node, ResultsCase rCase] { get { return(this[node]?[rCase]); } }
private void readResultCases(XmlNode xml) { if ("T-Result_Cases".Equals(xml.Name)) foreach (XmlNode child in xml.ChildNodes) if ("Result_Case".Equals(child.Name)) { ResultsCase rc; int id = int.Parse(Deserializer.readAttribute(child, "ID")); string fullPath = Deserializer.readAttribute(child, "FullPath"); rc = new ResultsCase(id, fullPath); rc.IsLoaded = bool.Parse(Deserializer.readAttribute(child, "IsLoaded", "True")); results.ResultsCases.Add(rc); } }
ICaseResults IModelObjectResults.Get(ResultsCase rCase) { return(this[rCase]); }