static void Main(string[] args) { Profile p = new ProfileImpl(); String index = String.Empty; Runtime rt = Runtime.instance(); jade.wrapper.AgentContainer distrCont = JadeHelper.CreateContainer("DistributorContainer", true, "localhost", "", "1153"); AgentController distrAgent = JadeHelper.CreateAgent(distrCont, "DistributorAgent", "Project_MASMA.DistributorAgent", null); distrCont.start(); distrAgent.start(); }
public void GenerateProcessorAgents() { String index; dispCont = JadeHelper.CreateContainer("DispatcherContainer", false, "localhost", null, "1150"); dispAgent = JadeHelper.CreateAgent(dispCont, "DispatcherAgent", "Project_MASMA.DispatcherAgent", null); for (int i = 0; i < Constants.ProcessorNumber; i++) { index = (i < 9) ? "0" + i : i.ToString(); procCont.Add(JadeHelper.CreateContainer("container" + i, false, "localhost", null, "11" + index)); procAgents.Add(JadeHelper.CreateAgent(procCont[i], "ProcessorAgent" + i, "Project_MASMA.ProcessorAgent", null)); } dispAgent.start(); for (int i = 0; i < Constants.ProcessorNumber; i++) { procCont[i].start(); procAgents[i].start(); } }
public AgentBuilder(AgentContainer agentContainer) { this.agentContainer = agentContainer; behaviourTypes = new List <Type>(); }
public static jade.wrapper.AgentController CreateAgent(jade.wrapper.AgentContainer container, string agentName, string agentClass, object[] args) { return(container.createNewAgent(agentName, agentClass, args)); }