Digital Twin - GUI
ProductCB.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Threading.Tasks;
6 using System.Windows.Forms;
7 
8 namespace GUI.Datatypes
9 {
13 
18  public class ProductCB : CheckBox
19  {
21  private MachineCB machine;
23  public double hoS;
25  public double qualitaetsrate;
26 
35 
37  public ProductCB(String name, MachineCB m, double bauteilwechselphase, double hos, double qualirate) : base()
38  {
39  this.Name = name;
40  this.Text = name;
41  this.ThreeState = false;
42  machine = m;
43  m.addProduct(this);
44  machine.Bauteilwechselphase = bauteilwechselphase;
45  hoS = hos;
46  qualitaetsrate = qualirate;
47  }
48 
54  {
55  return machine;
56  }
57 
58  }
59 }
MachineCB getMachine()
Grants access to the machine this product is meant to be produced on.
Definition: ProductCB.cs:53
double qualitaetsrate
Qualityrate in percent.
Definition: ProductCB.cs:25
void addProduct(ProductCB prod)
Add a product to this machine.
Definition: MachineCB.cs:57
A wrapper class for products.
Definition: ProductCB.cs:18
double Bauteilwechselphase
A number that describes the time needed to change toolkits on this machine (in minutes).
Definition: MachineCB.cs:27
MachineCB machine
Machine this product is produced on.
Definition: ProductCB.cs:21
double hoS
Value for "Huebe ohne Stoerung".
Definition: ProductCB.cs:23
ProductCB(String name, MachineCB m, double bauteilwechselphase, double hos, double qualirate)
The Constructor.
Definition: ProductCB.cs:37
A wrapper class for machines.
Definition: MachineCB.cs:18