Esempio n. 1
0
 public virtual void updateStats(Plan simulation)
 {
     // default: no action. only overide if the object needs it
 }
Esempio n. 2
0
 /// <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);
Esempio n. 3
0
 public void updateStats(Plan simulation)
 {
 }
Esempio n. 4
0
 public override List <int> runSimulation(Plan p, int maxSimulationLength)
 {
     throw new NotImplementedException();
 }
Esempio n. 5
0
        public override List <int> runSimulation(Plan p, int maxSimulationLength)
        {
            SimulationPolicy pol = policies[r.Next(policies.Count)];

            return(pol.runSimulation(p, maxSimulationLength));
        }