Esempio n. 1
0
 private void btexec_agents()
 {
     this.Agents.Sort();
     for (int i = 0; i < this.Agents.get_Count(); i++)
     {
         using (DictionaryView <int, Agent> .Enumerator enumerator = this.Agents.get_Item(i).agents.GetEnumerator())
         {
             while (enumerator.MoveNext())
             {
                 KeyValuePair <int, Agent> current = enumerator.get_Current();
                 if (current.get_Value().IsActive())
                 {
                     current.get_Value().btexec();
                     if (!this.m_bTickAgents)
                     {
                         break;
                     }
                 }
             }
         }
     }
     if (Agent.IdMask() != 0u)
     {
         int     contextId = base.GetContextId();
         Context context   = Context.GetContext(contextId);
         context.LogStaticVariables(null);
     }
 }
Esempio n. 2
0
        private void execAgents_()
        {
            this.DelayProcessingAgents();

            this.Agents.Sort();

            for (int i = 0; i < this.Agents.Count; ++i)
            {
                HeapItem_t pa = this.Agents[i];
                var        e  = pa.agents.Values.GetEnumerator();

                while (e.MoveNext())
                {
                    if (e.Current.IsActive())
                    {
                        e.Current.btexec();

                        //in case IsExecAgents was set to false by pA's bt
                        if (!Workspace.Instance.IsExecAgents)
                        {
                            break;
                        }
                    }
                }
            }

            if (Agent.IdMask() != 0)
            {
                this.LogStaticVariables(null);
            }
        }
Esempio n. 3
0
        private void execAgents_()
        {
            this.Agents.Sort();

            for (int i = 0; i < this.Agents.Count; ++i)
            {
                HeapItem_t pa = this.Agents[i];
                foreach (Agent pA in pa.agents.Values)
                {
                    if (pA.IsActive())
                    {
                        pA.btexec();

                        //in case IsExecAgents was set to false by pA's bt
                        if (!Workspace.Instance.IsExecAgents)
                        {
                            break;
                        }
                    }
                }
            }

            if (Agent.IdMask() != 0)
            {
                this.LogStaticVariables(null);
            }
        }
Esempio n. 4
0
        void btexec_agents()
        {
            this.Agents.Sort();

            for (int i = 0; i < this.Agents.Count; ++i)
            {
                HeapItem_t pa = this.Agents[i];
                foreach (Agent pA in pa.agents.Values)
                {
                    if (pA.IsActive())
                    {
                        pA.btexec();

                        //in case m_bTickAgents was set to false by pA's bt
                        if (!this.m_bTickAgents)
                        {
                            break;
                        }
                    }
                }
            }

            if (Agent.IdMask() != 0)
            {
                int     contextId = this.GetContextId();
                Context c         = Context.GetContext(contextId);

                c.LogStaticVariables(null);
            }
        }
Esempio n. 5
0
 private void btexec_agents()
 {
     this.Agents.Sort();
     for (int i = 0; i < this.Agents.Count; i++)
     {
         HeapItem_t _t = this.Agents[i];
         foreach (KeyValuePair <int, Agent> pair in _t.agents)
         {
             if (pair.Value.IsActive())
             {
                 pair.Value.btexec();
                 if (!this.m_bTickAgents)
                 {
                     break;
                 }
             }
         }
     }
     if (Agent.IdMask() != 0)
     {
         Context.GetContext(base.GetContextId()).LogStaticVariables(null);
     }
 }
Esempio n. 6
0
 private void btexec_agents()
 {
     this.Agents.Sort();
     for (int i = 0; i < this.Agents.get_Count(); i++)
     {
         foreach (KeyValuePair <int, Agent> current in this.Agents.get_Item(i).agents)
         {
             if (current.get_Value().IsActive())
             {
                 current.get_Value().btexec();
                 if (!this.m_bTickAgents)
                 {
                     break;
                 }
             }
         }
     }
     if (Agent.IdMask() != 0u)
     {
         int     contextId = base.GetContextId();
         Context context   = Context.GetContext(contextId);
         context.LogStaticVariables(null);
     }
 }
Esempio n. 7
0
 public bool IsMasked()
 {
     return((this.m_idFlag & Agent.IdMask()) != 0u);
 }