Digital Twin - GUI
|
A wrapper class for toolkits. More...
Public Member Functions | |
Toolkit (String name, LocationCB loc) | |
The Constructor. More... | |
void | addInfluencedToolkits (String toolkitName) |
Add a toolkit to the list of influenced toolkits. More... | |
void | addProduct (String productName) |
Add a product that is produced by this toolkit. More... | |
List< String > | getInfluencedToolkits () |
Grants access to the list of toolkits that cannot be used while this one is in use. More... | |
bool | isAbleToProduce (String p) |
Checks if Toolkit can produce a certain product. More... | |
Public Attributes | |
String | Name |
The toolkit's name. More... | |
Private Attributes | |
LocationCB | loc |
Location where this toolkit is at. More... | |
List< String > | products |
List of products this toolkit is able to produce. More... | |
List< String > | ww |
List of toolkits that are cannot be used when this toolkit is in use. More... | |
A wrapper class for toolkits.
This class stores all the information that is needed to describe a toolkit. Namely a list of products, that can be produced on it, a list of Toolkits that we cannot use when this toolkit is in use and the location this toolkit is at.
GUI.Datatypes.Toolkit.Toolkit | ( | String | name, |
LocationCB | loc | ||
) |
The Constructor.
name | The toolkit's name. |
loc | The toolkit's location. |
Constructs a toolkit simply by its name and the location that the toolkit is meant to be at.
void GUI.Datatypes.Toolkit.addInfluencedToolkits | ( | String | toolkitName | ) |
Add a toolkit to the list of influenced toolkits.
toolkitName | Name of a toolkit that cannot be used while this toolkit is. |
In the model it occurs, that a toolkit consists of several toolkits. So that each of those can be used only once per timeslot. That's why we keep track of those.
void GUI.Datatypes.Toolkit.addProduct | ( | String | productName | ) |
Add a product that is produced by this toolkit.
productName | Name of a product, this toolkit can produce. |
Adds a product by keeping a list of the product's names. The reason we don't use ProductCB's here is, that one product can be produced by a lot of machines, for which there exists a ProductCB each (so that we can check each of their Checkboxes individually). But toolkits are capable of those products, so we just store their names.
List<String> GUI.Datatypes.Toolkit.getInfluencedToolkits | ( | ) |
Grants access to the list of toolkits that cannot be used while this one is in use.
bool GUI.Datatypes.Toolkit.isAbleToProduce | ( | String | p | ) |
Checks if Toolkit can produce a certain product.
p | Name of product p that should be checked. |
|
private |
Location where this toolkit is at.
String GUI.Datatypes.Toolkit.Name |
The toolkit's name.
|
private |
List of products this toolkit is able to produce.
|
private |
List of toolkits that are cannot be used when this toolkit is in use.