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.
|
getBox
protected 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)
BoxAction
setBox
in interface BoxAction
setBox
in class BoxActionAdapter
p
- The box on which this action will be performed.public void actionPerformed()
IAction
IAction.actionPerformed()
public double getTemperature()
public void setTemperature(double temperature)