public Writer(Scenario scenario, Results results) { this.Scenario = scenario; this.ResultsContainer = results; this.FieldSeparator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; }
public Simits2() { InitializeComponent(); this.configComboTrajectories(); this.configComboMac(); this.scenario = new Scenario(); this.configCombosThroughput(); this.resultsContainer = new Results(); this.collisions = 0; this.successTx = 0; this.noTx = 0; this.gridVehicles.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; this.gridVehicles.DataSource = this.scenario.Vehicles; this.btStop.Enabled = false; this.btStartSimulation.Enabled = false; this.btWrite.Enabled = false; this.eamGraphs = new Dictionary<string, GraphControl3d.Graph3d>(); this.historyGraphs = new Dictionary<string, GraphControlBasic.BasicGraph>(); this.costGraphs = new Dictionary<string, GraphControlBasic.BasicGraph>(); this.specificRegions = new Dictionary<string, CheckedListBox>(); this.simDelay = 1000; this.storedValuesOfThr = new Dictionary<string, List<double>>(); this.storedValuesOfCollisions = new Dictionary<string, List<int>>(); this.updateTimer = new Timer(); this.updateTimer.Interval = 20; this.updateTimer.Tick += updateTimer_Tick; this.updateTimer.Start(); this.setStatusOff(); this.simulationTimer = new System.Timers.Timer(); this.simulationTimer.Elapsed += simulationTimer_Elapsed; }