private AgentOrderbookLoader MakeAgentOrderbookLoader(string PATH) { int dim = 0; string [] names = new string [0]; double [] mins = new double [0]; double [] maxs = new double [0]; IBlauSpace s = BlauSpace.create(dim, names, mins, maxs); IBlauPoint mean = new BlauPoint(s); IBlauPoint std = new BlauPoint(s); IDistribution d = new Distribution_Gaussian(s, mean, std); IAgentFactory afact = new AgentOrderbookLoader_Factory(PATH, d); IPopulation pop = PopulationFactory.Instance().create(afact, 1); AgentOrderbookLoader loader = null; foreach (IAgent ag in pop) { loader = (AgentOrderbookLoader)ag; break; } return(loader); }
static public AgentOrderbookLoader MakeAgentOrderbookLoader(string path) { string [] names = new string [1] { "x" }; double [] mins = new double [1] { 0.00 }; double [] maxs = new double [1] { 100.0 }; IBlauSpace s = BlauSpace.create(1, names, mins, maxs); IDistribution d = new Distribution_Gaussian(s, 0.0, 0.0); IAgentFactory afact = new AgentOrderbookLoader_Factory(path, d); IPopulation pop = PopulationFactory.Instance().create(afact, 1); AgentOrderbookLoader loader = null; foreach (IAgent ag in pop) { loader = (AgentOrderbookLoader)ag; break; } return(loader); }