public class MachineData extends Object
| Modifier and Type | Field and Description |
|---|---|
private int |
lotSize |
private double |
powerConsumption |
private String |
vendor |
| Constructor and Description |
|---|
MachineData(int lotSize,
double powerConsumption,
String vendor)
Creates a machine data object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLotSize()
Returns the actual lot size.
|
double |
getPowerConsumption()
Returns the power consumption.
|
String |
getVendor()
Returns the machine vendor name.
|
private int lotSize
private double powerConsumption
private String vendor
public MachineData(int lotSize,
double powerConsumption,
String vendor)
lotSize - the lot sizepowerConsumption - the power consumptionvendor - the vendor namepublic int getLotSize()
public double getPowerConsumption()
public String getVendor()
Copyright © 2022. All rights reserved.