Пример #1
0
        public object GetPluginConfig(AgAttrBuilder aab)
        {
            try
            {
                bool bUseArray = true;
                Debug.WriteLine("--> Entered", this.m_Name + ".GetPluginConfig()");

                if (this.m_Scope == null)
                {
                    this.m_Scope = aab.NewScope();

                    //===========================
                    // General Plugin attributes
                    //===========================
                    aab.AddStringDispatchProperty(this.m_Scope, "PluginName", "Human readable plugin name or alias", "Name", (int)AgEAttrAddFlags.eAddFlagNone);
                    aab.AddBoolDispatchProperty(this.m_Scope, "PluginEnabled", "If the plugin is enabled or has experience an error", "Enabled", (int)AgEAttrAddFlags.eAddFlagNone);
                    aab.AddStringDispatchProperty(this.m_Scope, "VectorName", "Vector Name that affects the srp area", "VectorName", (int)AgEAttrAddFlags.eAddFlagNone);

                    //===========================
                    // Propagation related
                    //===========================
                    if (bUseArray)
                    {
                        aab.AddChoicesDispatchProperty(this.m_Scope, "AccelRefFrame", "Acceleration Reference Frame", "AccelRefFrame", this.AccelRefFrameChoices);
                    }
                    else
                    {
                        aab.AddChoicesFuncDispatchProperty(this.m_Scope, "AccelRefFrame", "Acceleration Reference Frame", "AccelRefFrame", "AccelRefFrameChoices");
                    }
                    aab.AddDoubleDispatchProperty(this.m_Scope, "AccelX", "Acceleration in the X direction", "AccelX", (int)AgEAttrAddFlags.eAddFlagNone);
                    aab.AddDoubleDispatchProperty(this.m_Scope, "AccelY", "Acceleration in the Y direction", "AccelY", (int)AgEAttrAddFlags.eAddFlagNone);
                    aab.AddDoubleDispatchProperty(this.m_Scope, "AccelZ", "Acceleration in the Z direction", "AccelZ", (int)AgEAttrAddFlags.eAddFlagNone);

                    //===========================
                    // Messaging related attributes
                    //===========================
                    aab.AddBoolDispatchProperty(this.m_Scope, "UsePropagationMessages", "Send messages to the message window during propagation", "MsgStatus", (int)AgEAttrAddFlags.eAddFlagNone);
                    aab.AddIntDispatchProperty(this.m_Scope, "EvaluateMessageInterval", "The interval at which to send messages from the Evaluate method during propagation", "EvalMsgInterval", (int)AgEAttrAddFlags.eAddFlagNone);
                    aab.AddIntDispatchProperty(this.m_Scope, "PostEvaluateMessageInterval", "The interval at which to send messages from the PostEvaluate method during propagation", "PostEvalMsgInterval", (int)AgEAttrAddFlags.eAddFlagNone);
                    aab.AddIntDispatchProperty(this.m_Scope, "PreNextStepMessageInterval", "The interval at which to send messages from the PreNextStep method during propagation", "PreNextMsgInterval", (int)AgEAttrAddFlags.eAddFlagNone);
                }
                string config;
                config = aab.ToString(this, this.m_Scope);
                Debug.WriteLine(this.m_Name + ".GetPluginConfig():");
                Debug.WriteLine("============Attr Scope==============");
                Debug.WriteLine(config);
                Debug.WriteLine("====================================");
            }
            finally
            {
                Debug.WriteLine("<-- Exited", this.m_Name + ".GetPluginConfig()");
            }

            return(this.m_Scope);
        }
Пример #2
0
        public object GetPluginConfig(AgAttrBuilder builder)
        {
            try
            {
                Debug.WriteLine("--> Entered", "GetPluginConfig()");

                if (builder != null)
                {
                    if (this.m_AttrScope == null)
                    {
                        this.m_AttrScope = builder.NewScope();

                        //====================
                        // General Attributes
                        //====================
                        builder.AddStringDispatchProperty(this.m_AttrScope, "PluginName", "Human readable plugin name or alias", "Name", (int)AgEAttrAddFlags.eAddFlagReadOnly);

                        //================
                        // Thrust Attributes
                        //================
                        builder.AddDoubleDispatchProperty(this.m_AttrScope, "Isp", "Specific Impulse", "Isp", (int)AgEAttrAddFlags.eAddFlagNone);
                    }

                    string config;
                    config = builder.ToString(this, this.m_AttrScope);
                    Debug.WriteLine("\n" + config, "GetPluginConfig()");
                }
            }
            finally
            {
                Debug.WriteLine("<-- Exited", "GetPluginConfig()");
            }

            return(this.m_AttrScope);
        }
Пример #3
0
        public object GetPluginConfig(AgAttrBuilder aab)
        {
            try
            {
                if (this.m_Scope == null)
                {
                    this.m_Scope = aab.NewScope();

                    //===========================
                    // Debug attributes
                    //===========================
                    aab.AddBoolDispatchProperty(this.m_Scope, "DebugMode",
                                                "Turn debug messages on or off",
                                                "DebugMode",
                                                (int)AgEAttrAddFlags.eAddFlagNone);

                    aab.AddIntDispatchProperty(this.m_Scope, "MessageInterval",
                                               "The interval at which to send messages during propagation in Debug mode",
                                               "MsgInterval",
                                               (int)AgEAttrAddFlags.eAddFlagNone);

                    aab.AddDoubleDispatchProperty(this.m_Scope, "TargetCrossSectionSqMeters",
                                                  "The rough target cross section in m^2",
                                                  "TargetCrossSectionSqMeters",
                                                  (int)AgEAttrAddFlags.eAddFlagNone);
                }
            }
            finally
            {
            }

            return(this.m_Scope);
        }
Пример #4
0
        public object GetPluginConfig(AgAttrBuilder aab)
        {
            try
            {
                Debug.WriteLine("--> Entered", this.m_Name + ".GetPluginConfig()");

                if (this.m_Scope == null)
                {
                    this.m_Scope = aab.NewScope();

                    //===========================
                    // General Plugin attributes
                    //===========================
                    aab.AddStringDispatchProperty(this.m_Scope, "PluginName", "Human readable plugin name or alias", "Name", (int)AgEAttrAddFlags.eAddFlagNone);
                    aab.AddBoolDispatchProperty(this.m_Scope, "PluginEnabled", "If the plugin is enabled or has experience an error", "Enabled", (int)AgEAttrAddFlags.eAddFlagNone);
                    aab.AddBoolDispatchProperty(this.m_Scope, "DebugMode", "Turn debug messages on or off", "DebugMode", (int)AgEAttrAddFlags.eAddFlagNone);

                    // ==============================
                    //  Reflectivity related attributes
                    // ==============================
                    aab.AddDoubleDispatchProperty(this.m_Scope, "Reflectivity_Specular", "Specular reflectivity coefficient", "SpecularReflectivity", (int)AgEAttrAddFlags.eAddFlagNone);
                    aab.AddDoubleDispatchProperty(this.m_Scope, "Reflectivity_Diffuse", "Diffuse reflectivity coefficient", "DiffuseReflectivity", (int)AgEAttrAddFlags.eAddFlagNone);

                    //===========================
                    // Messaging related attributes
                    //===========================
                    aab.AddIntDispatchProperty(this.m_Scope, "MessageInterval", "The interval at which to send messages during propagation in Debug mode", "MsgInterval", (int)AgEAttrAddFlags.eAddFlagNone);
                }
                string config;
                config = aab.ToString(this, this.m_Scope);
                Debug.WriteLine(this.m_Name + ".GetPluginConfig():");
                Debug.WriteLine("============Attr Scope==============");
                Debug.WriteLine(config);
                Debug.WriteLine("====================================");
            }
            finally
            {
                Debug.WriteLine("<-- Exited", this.m_Name + ".GetPluginConfig()");
            }

            return(this.m_Scope);
        }
        public object GetPluginConfig(AgAttrBuilder pAttrBuilder)
        {
            if (m_AgAttrScope == null)
            {
                m_AgAttrScope = pAttrBuilder.NewScope();

                pAttrBuilder.AddFileDispatchProperty(m_AgAttrScope,
                                                     "FilePath",
                                                     "Path to input file",
                                                     "FilePath",
                                                     "Comma Separated Text File",
                                                     "*.txt",
                                                     (int)AgEAttrAddFlags.eAddFlagNone);

                pAttrBuilder.AddDoubleDispatchProperty(m_AgAttrScope,
                                                       "Tolerance",
                                                       "Tolerance used for lat/lon matching.",
                                                       "Tolerance",
                                                       (int)AgEAttrAddFlags.eAddFlagNone);
            }
            return(m_AgAttrScope);
        }
Пример #6
0
        public object GetPluginConfig(AgAttrBuilder aab)
        {
            try
            {
                if (this.m_Scope == null)
                {
                    this.m_Scope = aab.NewScope();

                    //aab.AddQuantityDispatchProperty ( this.m_Scope, "Diameter",
                    //    "Optical diameter",
                    //    "Diameter",
                    //    "Meters",
                    //    "Meters",
                    //    (int)AgEAttrAddFlags.eAddFlagNone );

                    //aab.AddQuantityDispatchProperty ( this.m_Scope, "Wavelength",
                    //    "Wavelength of the sensor you are observing with",
                    //    "Wavelength",
                    //    "Meters",
                    //    "Meters",
                    //    (int)AgEAttrAddFlags.eAddFlagNone );

                    //aab.AddDoubleDispatchProperty ( this.m_Scope, "OpticalRatio",
                    //    "Optical ratio (Q)",
                    //    "OpticalRatio",
                    //    (int)AgEAttrAddFlags.eAddFlagNone );

                    //aab.AddDoubleDispatchProperty ( this.m_Scope, "NIIRS_a",
                    //    "The a coefficient for the NIIRS equation",
                    //    "NIIRS_a",
                    //    (int)AgEAttrAddFlags.eAddFlagNone );

                    //aab.AddDoubleDispatchProperty ( this.m_Scope, "NIIRS_b",
                    //    "The b coefficient for the NIIRS equation",
                    //    "NIIRS_b",
                    //    (int)AgEAttrAddFlags.eAddFlagNone );

                    //aab.AddDoubleDispatchProperty ( this.m_Scope, "NIIRS_RER",
                    //    "The RER coefficient for the NIIRS equation",
                    //    "NIIRS_RER",
                    //    (int)AgEAttrAddFlags.eAddFlagNone );

                    aab.AddDoubleDispatchProperty(this.m_Scope, "TargetSize",
                                                  "The rough diameter of the target cross section",
                                                  "TargetSize",
                                                  (int)AgEAttrAddFlags.eAddFlagNone);

                    //===========================
                    // Debug attributes
                    //===========================
                    aab.AddBoolDispatchProperty(this.m_Scope, "DebugMode",
                                                "Turn debug messages on or off",
                                                "DebugMode",
                                                (int)AgEAttrAddFlags.eAddFlagNone);

                    aab.AddIntDispatchProperty(this.m_Scope, "MessageInterval",
                                               "The interval at which to send messages during propagation in Debug mode",
                                               "MsgInterval",
                                               (int)AgEAttrAddFlags.eAddFlagNone);
                }
            }
            finally
            {
            }

            return(this.m_Scope);
        }