GREET API
Exposed interfaces to create modules that can be loaded in GREET
 All Classes Namespaces Files Functions Enumerations Enumerator Properties Events
IGREETController.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.IO;
6 using PlugInsInterfaces.ResultTypes;
7 using PlugInsInterfaces.DataTypes;
8 using System.Reflection;
9 using PlugInsInterfaces.DataTypes.Vehicle;
10 
11 namespace PlugInsInterfaces
12 {
16  [Obfuscation(Feature = "renaming", Exclude = true)]
17  public interface IGREETController
18  {
23  [Obfuscation(Feature = "renaming", Exclude = true)]
24  string GetDefaultFolder();
25 
29  [Obfuscation(Feature = "renaming", Exclude = true)]
30  void RunSimalationAsync();
31 
35  [Obfuscation(Feature = "renaming", Exclude = true)]
36  void RunSimalation(bool textMinMaxMonitors);
37 
42  [Obfuscation(Feature = "renaming", Exclude = true)]
43  event EventHandler CalculationFinished;
44 
49  [Obfuscation(Feature = "renaming", Exclude = true)]
50  int getModelYear();
51 
57  [Obfuscation(Feature = "renaming", Exclude = true)]
58  void Decompress(Stream inp, Stream outp);
59 
65  [Obfuscation(Feature = "renaming", Exclude = true)]
66  void Compress(Stream inp, Stream outp);
67 
73  [Obfuscation(Feature = "renaming", Exclude = true)]
74  string DownloadDatabaseFromServer(int revNumber = 0);
75 
81  [Obfuscation(Feature = "renaming", Exclude = true)]
82  IProject LoadProjectFile(string filename);
83 
90  [Obfuscation(Feature = "renaming", Exclude = true)]
91  string SaveProject(IProject project, string fileName);
92 
96  [Obfuscation(Feature = "renaming", Exclude = true)]
98 
102  [Obfuscation(Feature = "renaming", Exclude = true)]
103  Dictionary<string, IUnit> UnitsAvailable { get; }
104 
108  [Obfuscation(Feature = "renaming", Exclude = true)]
109  Dictionary<string, IUnitGroup> UnitGroupsAvailable { get; }
110  }
111 }
void RunSimalation(bool textMinMaxMonitors)
Asks GREET to run the simulation and computes the model
EventHandler CalculationFinished
When the calculations are done, this event fires up to warn any plugin that we are going to have some...
void Compress(Stream inp, Stream outp)
Uses an input stream and compresses it using deflate
void Decompress(Stream inp, Stream outp)
Uses an input stream and decompresses it
string SaveProject(IProject project, string fileName)
Saves the given project to a file
string GetDefaultFolder()
Get the default folder used by GREET to store data, by default the MyDocument/Greet folder ...
Dictionary< string, IUnit > UnitsAvailable
Returns a dictionary with units available in GREET
int getModelYear()
Returns the current modeling year chosen by the user
IProject CurrentProject
Returns the project currently in use
Object representing the collection of entities of a loaded project
Definition: IProject.cs:15
string DownloadDatabaseFromServer(int revNumber=0)
Orders the software to download a specific version of the database from the webservice ...
Dictionary< string, IUnitGroup > UnitGroupsAvailable
Returns a dictionary with unit groups available in GREET
IProject LoadProjectFile(string filename)
Orders the main GUI to load a specific file as the current project
void RunSimalationAsync()
Asks GREET to run the simulation and computes the model
An interface that defines what methods and events can be used in order to interact with the GREET sof...