public CalculationCManager(SimProvider.Bike bike, double timestepSize) { _bike = bike; _timestepSEC = timestepSize; _amountOfCounts = 0; _infCalculation = true; }
private void Simulation(SimProvider.Bike bike) { //VirtualSimulation vs = new VirtualSimulation(); //vs.Show(); Save.Manager.SimulationCManager manager = new Save.Manager.SimulationCManager(); manager._bike = bike; MainChartWindow m = new MainChartWindow(manager); m._mode = "SimulationManager"; //Graphics.Scene s = new Graphics.Scene(800, 600); m.Show(); this.Close(); }
private void Calculation(SimProvider.Bike bike) { Save.Manager.CalculationCManager manager = new Save.Manager.CalculationCManager(bike, 0.0001); MainChartWindow m = new MainChartWindow(manager); if (checkBox1.Checked) { m._simulate = true; } m.Show(); m._mode = "CalculationManager"; this.Close(); }
public CSVExport() { SimProvider.Bike sim = new SimProvider.Bike(); SimProvider.Bike sim1 = new SimProvider.Bike(); string chart = "Time;Velocity;Acceleration\n"; chart += "0;" + sim.Veclocity + ";" + sim.Acceleration + "\n"; for (int i = 1; i < 50; i++) { sim.update(1, 255); chart += i + ";" + sim.Veclocity + ";" + sim.Acceleration + "\n"; } chart += ";;\n;;\n;;\n"; chart += "0;" + sim1.Veclocity + ";" + sim1.Acceleration + "\n"; for(int i = 1; i < 100; i++) { sim1.update(1, 128); chart += i + ";" + sim1.Veclocity + ";" + sim1.Acceleration + "\n"; } System.IO.File.WriteAllText("chart.csv", chart); }
public CSVExport() { SimProvider.Bike sim = new SimProvider.Bike(); SimProvider.Bike sim1 = new SimProvider.Bike(); string chart = "Time;Velocity;Acceleration\n"; chart += "0;" + sim.Veclocity + ";" + sim.Acceleration + "\n"; for (int i = 1; i < 50; i++) { sim.update(1, 255); chart += i + ";" + sim.Veclocity + ";" + sim.Acceleration + "\n"; } chart += ";;\n;;\n;;\n"; chart += "0;" + sim1.Veclocity + ";" + sim1.Acceleration + "\n"; for (int i = 1; i < 100; i++) { sim1.update(1, 128); chart += i + ";" + sim1.Veclocity + ";" + sim1.Acceleration + "\n"; } System.IO.File.WriteAllText("chart.csv", chart); }
public void newBike(Graphics.Scene scene,SimProvider.Bike bike) { _scene = scene; _bike = bike; // throw new NotImplementedException(); }
public CalculationCManager(SimProvider.Bike bike, double timestepSize, double calculationTime) { _bike = bike; _timestepSEC = timestepSize; _amountOfCounts = (int)timestepSize * (int)calculationTime; }
public void newBike(Graphics.Scene scene, SimProvider.Bike bike) { _scene = scene; _bike = bike; // throw new NotImplementedException(); }