public virtual void updateStats(Plan simulation) { // default: no action. only overide if the object needs it }
/// <summary> /// Runs a simulation given the initial part of the plan. It also adds actions in the simulation to the plan. /// </summary> /// <param name="p"></param> /// <param name="maxSimulationLength"></param> /// <returns></returns> public abstract List <int> runSimulation(Plan p, int maxSimulationLength);
public void updateStats(Plan simulation) { }
public override List <int> runSimulation(Plan p, int maxSimulationLength) { throw new NotImplementedException(); }
public override List <int> runSimulation(Plan p, int maxSimulationLength) { SimulationPolicy pol = policies[r.Next(policies.Count)]; return(pol.runSimulation(p, maxSimulationLength)); }