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); } }
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); } }
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); } }
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); } }
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); } }
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); } }
public bool IsMasked() { return((this.m_idFlag & Agent.IdMask()) != 0u); }