Class TestMachine
- java.lang.Object
-
- test.de.iip_ecosphere.platform.support.aas.TestMachine
-
public class TestMachine extends java.lang.ObjectImplements a test machine.- Author:
- Holger Eichelberger, SSE
-
-
Field Summary
Fields Modifier and Type Field Description private intlotSizeprivate doublepowerConsumptionprivate java.lang.Stringvendor
-
Constructor Summary
Constructors Constructor Description TestMachine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLotSize()Returns the actual lot size.doublegetPowerConsumption()Returns the power consumption.java.lang.StringgetVendor()Returns the vendor.booleanreconfigure(int lotSize)Configures the lot size.voidsetLotSize(int lotSize)Configures the lot size.voidsetVendor(java.lang.String vendor)Changes the vendor.voidstart()Starts the machine.voidstop()Stops the machine and resets the values.
-
-
-
Method Detail
-
start
public void start()
Starts the machine.
-
stop
public void stop()
Stops the machine and resets the values.
-
getLotSize
public int getLotSize()
Returns the actual lot size.- Returns:
- the lot size
-
setLotSize
public void setLotSize(int lotSize)
Configures the lot size.- Parameters:
lotSize- the new lot size
-
reconfigure
public boolean reconfigure(int lotSize)
Configures the lot size.- Parameters:
lotSize- the new lot size- Returns:
- if the new lot size is greater than the old one
-
getPowerConsumption
public double getPowerConsumption()
Returns the power consumption.- Returns:
- the power consumption
-
getVendor
public java.lang.String getVendor()
Returns the vendor.- Returns:
- the vendor
-
setVendor
public void setVendor(java.lang.String vendor)
Changes the vendor.- Parameters:
vendor- the new vendor
-
-