//Methods public void AddAgent(IAgent a) { //Add to Universe lock (this._allAgentsLock) this._allAgents.Add(a); a.SetSimulator(this); lock (this._addQueveLock) this._addQueve.Add(a); }