示例#1
0
 public LocalCommManager(IDataManager dataManager, Serializer serializer, INetwork network)
 {
     this.dataManager = dataManager;
     this.network     = network;
     this.serializer  = serializer;
     this.agentIPs    = new Dictionary <int, IPEndPoint>();
     this.writer      = new MessageWriter(network);
     this.reader      = new MessageReader(handleRequest, network);
     this.protocol    = new BeliefSyncProtocol(writer, serializer);
 }
示例#2
0
 public AgentConnection(BeliefSyncProtocol protocol, int agentID)
 {
     this.protocol = protocol;
     this.agentID  = agentID;
 }