Beispiel #1
0
        //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------


        /// <summary>
        /// To the XML.
        /// </summary>
        /// <returns></returns>
        public XElement ToXml()
        {
            return(new XElement("RFDevice",

                                XElementExtension.GetXElement("PrimaryKey", this.PrimaryKey),
                                XElementExtension.GetXElement("Id", this.Id),
                                XElementExtension.GetXElement("DeviceSource", this.DeviceSource),
                                XElementExtension.GetXElement("StartTime", this.StartTime),
                                XElementExtension.GetXElement("Name", this.Name),
                                XElementExtension.GetXElement("Latitude", this.Latitude),
                                XElementExtension.GetXElement("Longitude", this.Longitude),
                                XElementExtension.GetXElement("Altitude", this.Altitude),
                                XElementExtension.GetXElement("Roll", this.Roll),
                                XElementExtension.GetXElement("Pitch", this.Pitch),
                                XElementExtension.GetXElement("Yaw", this.Yaw),
                                XElementExtension.GetXElement("RxTxType", this.RxTxType),
                                XElementExtension.GetXElement("AntennaType", this.AntennaType),
                                XElementExtension.GetXElement("CenterFrequency_Hz", this.CenterFrequency_Hz),
                                XElementExtension.GetXElement("Bandwidth_Hz", this.Bandwidth_Hz),
                                XElementExtension.GetXElement("Gain_dB", this.Gain_dB),
                                XElementExtension.GetXElement("SignalToNoiseRatio_dB", this.SignalToNoiseRatio_dB),
                                XElementExtension.GetXElement("XPos", this.XPos),
                                XElementExtension.GetXElement("YPos", this.YPos),
                                XElementExtension.GetXElement("ZPos", this.ZPos),
                                XElementExtension.GetXElement("TechnicalParameters", this.TechnicalParameters),
                                XElementExtension.GetXElement("Remark", this.Remark)
                                ));
        }
        //static public readonly string TOOLTIP_TECHNICALPARAMETERS = "Additional (Optional) Technical Parameters For The Simulation.";

        #endregion

        #endregion

        //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------


        /// <summary>
        /// To the XML.
        /// </summary>
        /// <returns></returns>
        public XElement ToXml()
        {
            return(new XElement("RFDevice",

                                XElementExtension.GetXElement("PrimaryKey", PrimaryKey),
                                XElementExtension.GetXElement("Id", Id),
                                XElementExtension.GetXElement("DeviceSource", DeviceSource),
                                XElementExtension.GetXElement("StartTime", StartTime),
                                XElementExtension.GetXElement("Name", Name),
                                XElementExtension.GetXElement("Latitude", Latitude),
                                XElementExtension.GetXElement("Longitude", Longitude),
                                XElementExtension.GetXElement("Altitude", Altitude),
                                XElementExtension.GetXElement("Roll", Roll),
                                XElementExtension.GetXElement("Pitch", Pitch),
                                XElementExtension.GetXElement("Yaw", Yaw),
                                XElementExtension.GetXElement("RxTxType", RxTxType),
                                XElementExtension.GetXElement("AntennaType", AntennaType),
                                XElementExtension.GetXElement("CenterFrequency_Hz", CenterFrequency_Hz),
                                XElementExtension.GetXElement("Bandwidth_Hz", Bandwidth_Hz),
                                XElementExtension.GetXElement("Gain_dB", Gain_dB),
                                XElementExtension.GetXElement("SignalToNoiseRatio_dB", SignalToNoiseRatio_dB),
                                XElementExtension.GetXElement("XPos", XPos),
                                XElementExtension.GetXElement("YPos", YPos),
                                XElementExtension.GetXElement("ZPos", ZPos),
                                XElementExtension.GetXElement("Remark", Remark),
                                XElementExtension.GetXElement("TechnicalParameters", TechnicalParameters)
                                ));
        }
        //static public readonly string TOOLTIP_DESCRIPTIONSTYLESHEET = "An Optional Stylesheet To Use For Rendering The Generated HTML.";

        #endregion

        #endregion

        //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------


        /// <summary>
        /// To the XML.
        /// </summary>
        /// <returns></returns>
        public XElement ToXml()
        {
            return(new XElement("ScenarioMetaInformation",

                                XElementExtension.GetXElement("Version", Version, false),
                                XElementExtension.GetXElement("ApplicationContext", ApplicationContext, false),
                                XElementExtension.GetXElement("ContactPerson", ContactPerson, false),
                                XElementExtension.GetXElement("DescriptionMarkdown", DescriptionMarkdown, true),
                                XElementExtension.GetXElement("DescriptionStylesheet", DescriptionStylesheet, true)
                                ));
        }
        //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------


        /// <summary>
        /// Return An XML Element From This Instance.
        /// </summary>
        /// <returns></returns>
        public XElement ToXml()
        {
            return(new XElement("GeoLocalizationResult",

                                XElementExtension.GetXElement("PrimaryKey", PrimaryKey),
                                XElementExtension.GetXElement("Id", Id),
                                XElementExtension.GetXElement("Latitude", Latitude),
                                XElementExtension.GetXElement("Longitude", Longitude),
                                XElementExtension.GetXElement("Altitude", Altitude),
                                XElementExtension.GetXElement("LocalizationTime", LocalizationTime)
                                ));
        }