public void Step() { if (PS.Set.Count == 0) { PS = Initialize(); } foreach (Operator o in GA.Operations) { PS = o.Operate(PS); PS = GA.Evaluation.Evaluate(PS); PS.Print(); } /* * * // IQuery query = new SimpleQuery(); Will be implemented properly when the code is merged with the Action/Query group * double myAverage = 0; // just a mock cuz of not yet working properties in this project * Actualize(); * //myAverage * if (PS.CheckForChange()) * { * List<String> mockAgentsList = null; * // query.SetNewCondition(new PropertyOp("AverageValue", o => ((double)o > myAverage))); * IAction action = new ActionGet(this, mockAgentsList, 10); * AddAction(action); * } * */ }
public PointSet Initialize() { PS = GA.Initialization.Create(); PS = GA.Evaluation.Evaluate(PS); PS.Print(); return(PS); }