Digital Twin - GUI
Public Member Functions | Public Attributes | Private Attributes | List of all members
GUI.Datatypes.Toolkit Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

GUI.Datatypes.Toolkit.Toolkit ( String  name,
LocationCB  loc 
)

The Constructor.

Parameters
nameThe toolkit's name.
locThe toolkit's location.

Constructs a toolkit simply by its name and the location that the toolkit is meant to be at.

Member Function Documentation

void GUI.Datatypes.Toolkit.addInfluencedToolkits ( String  toolkitName)

Add a toolkit to the list of influenced toolkits.

Parameters
toolkitNameName 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.

Parameters
productNameName 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.

Returns
List of influenced toolkits.
bool GUI.Datatypes.Toolkit.isAbleToProduce ( String  p)

Checks if Toolkit can produce a certain product.

Parameters
pName of product p that should be checked.
Returns

Member Data Documentation

LocationCB GUI.Datatypes.Toolkit.loc
private

Location where this toolkit is at.

String GUI.Datatypes.Toolkit.Name

The toolkit's name.

List<String> GUI.Datatypes.Toolkit.products
private

List of products this toolkit is able to produce.

List<String> GUI.Datatypes.Toolkit.ww
private

List of toolkits that are cannot be used when this toolkit is in use.


The documentation for this class was generated from the following file: