public class BoxQuench extends BoxActionAdapter
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
dim |
|
protected MeterTemperature |
meterTemperature |
|
protected double |
temperature |
box| Constructor | Description |
|---|---|
BoxQuench(double temperature,
int dim) |
Constructs class without specifying box and using Default temperature.
|
BoxQuench(int dim) |
|
BoxQuench(Box p,
double temperature) |
Constructs class ready to perform quench on given box to given temperature.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
actionPerformed() |
Completes the action defined by the class implementing this interface.
|
double |
getTemperature() |
Returns the quench temperature.
|
void |
setBox(Box p) |
Specifies the Box that will be subject to the action, upon subsequent call to actionPerformed()
|
void |
setTemperature(double temperature) |
Sets the quench temperature.
|
getBoxprotected double temperature
protected MeterTemperature meterTemperature
protected final int dim
public BoxQuench(int dim)
public BoxQuench(double temperature,
int dim)
public BoxQuench(Box p, double temperature)
public void setBox(Box p)
BoxActionsetBox in interface BoxActionsetBox in class BoxActionAdapterp - The box on which this action will be performed.public void actionPerformed()
IActionIAction.actionPerformed()public double getTemperature()
public void setTemperature(double temperature)