예제 #1
0
 public void LogStaticVariables(string agentClassName)
 {
     if (!string.IsNullOrEmpty(agentClassName))
     {
         if (this.m_static_variables.ContainsKey(agentClassName))
         {
             Variables variables = this.m_static_variables[agentClassName];
             variables.Log(null, false);
         }
     }
     else
     {
         foreach (KeyValuePair <string, Variables> current in this.m_static_variables)
         {
             current.get_Value().Log(null, false);
         }
     }
 }
예제 #2
0
        /**
         * log changed static variables(propery) for the specified agent class or all agent classes
         *
         * @param agentClassName
         * if null, it logs for all the agent class
         */
        public void LogStaticVariables(string agentClassName)
        {
            if (!string.IsNullOrEmpty(agentClassName))
            {
                if (m_static_variables.ContainsKey(agentClassName))
                {
                    Variables variables = m_static_variables[agentClassName];

                    variables.Log(null, false);
                }
            }
            else
            {
                foreach (Variables variables in m_static_variables.Values)
                {
                    variables.Log(null, false);
                }
            }
        }
예제 #3
0
        /**
         * log changed static variables(propery) for the specified agent class or all agent classes
         *
         * @param agentClassName
         * if null, it logs for all the agent class
         */

        private void LogStaticVariables(string agentClassName)
        {
            if (!string.IsNullOrEmpty(agentClassName))
            {
                if (m_static_variables.ContainsKey(agentClassName))
                {
                    Variables variables = m_static_variables[agentClassName];

                    variables.Log(null, false);
                }
            }
            else
            {
                var e = m_static_variables.Values.GetEnumerator();
                while (e.MoveNext())
                {
                    e.Current.Log(null, false);
                }
            }
        }
예제 #4
0
 public void LogStaticVariables(string agentClassName)
 {
     if (!string.IsNullOrEmpty(agentClassName))
     {
         if (this.m_static_variables.ContainsKey(agentClassName))
         {
             Variables variables = this.m_static_variables.get_Item(agentClassName);
             variables.Log(null, false);
         }
     }
     else
     {
         using (DictionaryView <string, Variables> .Enumerator enumerator = this.m_static_variables.GetEnumerator())
         {
             while (enumerator.MoveNext())
             {
                 KeyValuePair <string, Variables> current = enumerator.get_Current();
                 current.get_Value().Log(null, false);
             }
         }
     }
 }