Esempio n. 1
0
        /// <summary>
        /// A verbose string representation of the instance of the <see cref="SeriesBranchBase"/> class.
        /// </summary>
        /// <returns>A verbose string representation of the instance of the <see cref="SeriesBranchBase"/> class.</returns>
        public string ToVerboseString()
        {
            StringBuilder stringBuilder = new StringBuilder();

            stringBuilder.AppendLine();
            stringBuilder.AppendFormat("----- Series Branch Base -------------------------------------------------------");
            stringBuilder.AppendLine();
            stringBuilder.AppendFormat("      InternalID: " + InternalID.ToString() + "{0}", Environment.NewLine);
            stringBuilder.AppendFormat("          Number: " + Number.ToString() + "{0}", Environment.NewLine);
            stringBuilder.AppendFormat("            Name: " + Name + "{0}", Environment.NewLine);
            stringBuilder.AppendFormat("     Description: " + Description + "{0}", Environment.NewLine);
            stringBuilder.AppendFormat("        FromNode: " + FromNode.ToString() + "{0}", Environment.NewLine);
            stringBuilder.AppendFormat("          ToNode: " + ToNode.ToString() + "{0}", Environment.NewLine);
            stringBuilder.AppendFormat(m_impedance.ToVerboseString());
            stringBuilder.AppendLine();
            return(stringBuilder.ToString());
        }
        /// <summary>
        /// A verbose string representation of the instance of the <see cref="SynchrophasorAnalytics.Modeling.ShuntCompensator"/> class and can be used for descriptive console or text file output.
        /// </summary>
        /// <returns>A verbose string representation of the instance of the <see cref="SynchrophasorAnalytics.Modeling.ShuntCompensator"/> class.</returns>
        public string ToVerboseString()
        {
            StringBuilder stringBuilder = new StringBuilder();

            stringBuilder.AppendLine();
            stringBuilder.AppendFormat("----- Shunt Branch -------------------------------------------------------------");
            stringBuilder.AppendLine();
            stringBuilder.AppendFormat("      InternalID: " + m_internalID.ToString() + "{0}", Environment.NewLine);
            stringBuilder.AppendFormat("          Number: " + m_number.ToString() + "{0}", Environment.NewLine);
            stringBuilder.AppendFormat("            Name: " + m_name + "{0}", Environment.NewLine);
            stringBuilder.AppendFormat("     Description: " + m_description + "{0}", Environment.NewLine);
            stringBuilder.AppendFormat("   ConnectedNode: " + m_connectedNode.ToString() + "{0}", Environment.NewLine);
            stringBuilder.AppendFormat(" ImpedanceMethod: " + m_impedanceCalculationMethod.ToString() + "{0}", Environment.NewLine);
            stringBuilder.AppendFormat("       RatedMVAR: " + m_nominalMvar.ToString() + "{0}", Environment.NewLine);
            stringBuilder.AppendLine();
            stringBuilder.AppendFormat(m_impedance.ToVerboseString());
            stringBuilder.AppendLine();
            return(stringBuilder.ToString());
        }