Microscopic Traffic Simulator

- Main Page
- Packages
- Classes
- Files

- File List

Settings.cs
Go to the documentation of this file.
1 using Microscopic_Traffic_Simulator.ViewModels;
2
3 namespace Microscopic_Traffic_Simulator
4 {
8 class Settings : ISettings
9 {
13 public string LastGeometricTopologyPath
14 {
15 get { return Properties.Settings.Default.LastGeometricTopologyPath; }
16 set { Properties.Settings.Default.LastGeometricTopologyPath = value; }
17 }
18
22 public int PreviousSeed
23 {
24 get { return Properties.Settings.Default.PreviousSeed; }
25 set { Properties.Settings.Default.PreviousSeed = value; }
26 }
27
31 public bool PreviousSeedNull
32 {
33 get { return Properties.Settings.Default.PreviousSeedNull; }
34 set { Properties.Settings.Default.PreviousSeedNull = value; }
35 }
36
40 public bool IsSeedSettingAutomatic
41 {
42 get { return Properties.Settings.Default.IsSeedSettingAutomatic; }
43 set { Properties.Settings.Default.IsSeedSettingAutomatic = value; }
44 }
45
49 public bool IsPreviousSeedUsed
50 {
51 get { return Properties.Settings.Default.IsPreviousSeedUsed; }
52 set { Properties.Settings.Default.IsPreviousSeedUsed = value; }
53 }
54
58 public string PathToParameters
59 {
60 get { return Properties.Settings.Default.PathToParameters; }
61 set { Properties.Settings.Default.PathToParameters = value; }
62 }
63
67 public void Save()
68 {
69 Properties.Settings.Default.Save();
70 }
71 }
72 }
Microscopic_Traffic_Simulator.Settings.LastGeometricTopologyPath
string LastGeometricTopologyPath
Path of last opened geometric topology file.
Definition: Settings.cs:14
Microscopic_Traffic_Simulator.Settings
Class implementing ISetting interface using settings of visual studio application.
Definition: Settings.cs:8
Microscopic_Traffic_Simulator.ViewModels.ISettings
Interface of application settings.
Definition: ISettings.cs:6
Microscopic_Traffic_Simulator.ViewModels
Definition: CanvasViewModel.cs:8
Microscopic_Traffic_Simulator.Settings.Save
void Save()
Save settings.
Definition: Settings.cs:67
Microscopic_Traffic_Simulator.Settings.IsSeedSettingAutomatic
bool IsSeedSettingAutomatic
Determines whether the seed is initialized automatically.
Definition: Settings.cs:41
Microscopic_Traffic_Simulator
Definition: App.xaml.cs:12
Microscopic_Traffic_Simulator.Settings.PreviousSeed
int PreviousSeed
Seed used in the previous simulation run.
Definition: Settings.cs:23
Microscopic_Traffic_Simulator.Settings.PathToParameters
string PathToParameters
Path to last used file with parameters.
Definition: Settings.cs:59
Microscopic_Traffic_Simulator.Settings.PreviousSeedNull
bool PreviousSeedNull
Determines whether any simulation was performed (whether any previous seed is available).
Definition: Settings.cs:32
Microscopic_Traffic_Simulator.Settings.IsPreviousSeedUsed
bool IsPreviousSeedUsed
Determines whether the seed from previous simulation run is used.
Definition: Settings.cs:50