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

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