Beispiel #1
0
        public AgentSession GetAgentSession(Guid guid)
        {
            AgentSession session = null;

            Agents.TryGetValue(guid, out session);
            return(session);
        }
Beispiel #2
0
        //
        public Guid Intern(Agent agent)
        {
            AgentSession interned = null;

            if (!Agents.TryGetValue(agent.Guid, out interned))
            {
                interned = new AgentSession(this, agent, Callback, agent.Guid);
                Agents.Add(agent.Guid, interned);
            }
            return(interned.Guid);
        }
Beispiel #3
0
        //
        public Guid GetBrain(Guid agentId)
        {
            AgentSession session = GetAgentSession(agentId);

            return(session.GetBrain(agentId));
        }