public Worker(Configuration config, AgentPosition pos, string id, OrganizationBoundries orgBoundary, Container cont) : base(config, pos, id, cont) { TeamBoundary = orgBoundary; ReplyWaitingList = new List <Message>(); MaxPingDelay = 10000; }
public OrganizationBoundries CreateRandomOrganization() { var localOrgBoundary = new OrganizationBoundries { OrgCenter = SetAgentPosition().Position, Radius = Config.TeamOrganizationRadius }; return(localOrgBoundary); }
public Team(Configuration config, int orgId, int agentCount, OrganizationBoundries orgBoundries, Container cont) { LeadersHistory = new List <Leader>(); Config = config; Container = cont; OrganizationBoundries = orgBoundries; OrganizationId = orgId; NumOfAgents = agentCount; LeadersHistory.Add(CreateLeader()); AgentsArray = new List <Worker>(NumOfAgents); for (var i = 0; i < NumOfAgents; i++) { var sId = "W" + OrganizationId + i; var worker = CreateNode(sId); worker.LeaderAgent = ActiveLeader; AgentsArray.Add(worker); } }