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); }
public AgentConnection(BeliefSyncProtocol protocol, int agentID) { this.protocol = protocol; this.agentID = agentID; }