Digital Twin - GUI
|
This class reads all the important data out of an Excel file and creates all the Checkboxes we need. More...
Public Member Functions | |
CheckboxCreator (String dir) | |
Constructor. More... | |
void | Create () |
Reads all the Data from Dir + "\\Dataset.xlsx". More... | |
LocationCB[] | GetAllLocations () |
Grants access to the location array. More... | |
List< MachineCB >[] | GetAllMachines () |
Grants access to the machine checkboxes. More... | |
List< ProductCB >[] | GetAllProducts () |
Grants access to the product checkboxes. More... | |
Dictionary< String, int > | GetLocationDict () |
Grants access to the location dictionary. More... | |
String[] | GetLocationNames () |
Grants access to the all the location names. More... | |
Public Attributes | |
String | Dir |
Directory CheckboxCreator reads from. More... | |
Private Member Functions | |
void | createLocations (DataTable sheet) |
Creates the location Checkboxes. More... | |
void | createMachines (DataTable sheet, String LocationName) |
Creates the machine Checkboxes. More... | |
void | createProducts (DataTable sheet, MachineCB m, int indexOfMachine) |
Creates the product Checkboxes. More... | |
Private Attributes | |
Dictionary< String, int > | locationDictionary = new Dictionary<String, int>() |
Dictionary that maps a location's name to its position in the locations array. More... | |
String[] | locationNames |
Array that contains all of the locations' names. More... | |
LocationCB[] | locations |
Array that contains all of the locations. More... | |
List< MachineCB >[] | machinesAtLocation |
All machines at a specific location. More... | |
List< ProductCB >[] | productsAtLocation |
All products at a specific location. More... | |
This class reads all the important data out of an Excel file and creates all the Checkboxes we need.
GUI.IO_Modules.CheckboxCreator.CheckboxCreator | ( | String | dir | ) |
Constructor.
dir | Directory CheckboxCreator reads from. |
void GUI.IO_Modules.CheckboxCreator.Create | ( | ) |
Reads all the Data from Dir + "\\Dataset.xlsx".
|
private |
Creates the location Checkboxes.
sheet | DataTable that is extracted from an Excel worksheet. |
|
private |
Creates the machine Checkboxes.
sheet | DataTable that is extracted from an Excel worksheet. |
LocationName | Name of the location we want to create the machine Checkboxes for. |
|
private |
Creates the product Checkboxes.
sheet | DataTable that is extracted from an Excel worksheet. |
m | Machine Checkbox we want to create the product Checkboxes for. |
indexOfMachine | Index of Machine m in the Excel sheet. |
LocationCB [] GUI.IO_Modules.CheckboxCreator.GetAllLocations | ( | ) |
Grants access to the location array.
List<MachineCB> [] GUI.IO_Modules.CheckboxCreator.GetAllMachines | ( | ) |
Grants access to the machine checkboxes.
List<ProductCB> [] GUI.IO_Modules.CheckboxCreator.GetAllProducts | ( | ) |
Grants access to the product checkboxes.
Dictionary<String, int> GUI.IO_Modules.CheckboxCreator.GetLocationDict | ( | ) |
Grants access to the location dictionary.
String [] GUI.IO_Modules.CheckboxCreator.GetLocationNames | ( | ) |
Grants access to the all the location names.
String GUI.IO_Modules.CheckboxCreator.Dir |
Directory CheckboxCreator reads from.
|
private |
Dictionary that maps a location's name to its position in the locations array.
|
private |
Array that contains all of the locations' names.
|
private |
Array that contains all of the locations.
|
private |
All machines at a specific location.
|
private |
All products at a specific location.