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

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