コード例 #1
0
 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;
 }
コード例 #2
0
 public void Initialize(Simulation simulation) { Simulation = simulation; }
コード例 #3
0
 public AnimatScatterplot(Simulation simulation)
 {
     Scatterplot.Filter1 = (actor, record) => actor.Species != null ? actor : null;
     Simulation = simulation;
 }
コード例 #4
0
 public SpeciesScatterplot(Simulation simulation)
 {
     Scatterplot.Filter1 = (actor, record) => actor.Species;
     Simulation = simulation;
 }