public static Simulation Create(Scenario scenario, string simulationDirectory)
 {
     Directory.CreateDirectory(simulationDirectory);
     var result = new Simulation(scenario, simulationDirectory)
     {
         MovingAnimats = false,
         AnimateSimulation = true,
         TimeStepSize = (from p in scenario.Platforms
                         from s in p.Sources
                         from m in s.Modes
                         select (TimeSpan)m.PulseInterval).Max()
     };
     return result;
 }
 public void Initialize(Simulation simulation) { Simulation = simulation; }
 public AnimatScatterplot(Simulation simulation)
 {
     Scatterplot.Filter1 = (actor, record) => actor.Species != null ? actor : null;
     Simulation = simulation;
 }
 public SpeciesScatterplot(Simulation simulation)
 {
     Scatterplot.Filter1 = (actor, record) => actor.Species;
     Simulation = simulation;
 }