public class OffUnoccupiedClosed extends SpectroState
Constructor and Description |
---|
OffUnoccupiedClosed(SpectroBehavior state) |
Modifier and Type | Method and Description |
---|---|
void |
flipLid()
flips lid, then state changes to OffUnoccupiedOpen
|
void |
flipSwitch()
flips switch, then state changes to OnUnoccupiedClose
|
double |
measure()
measures test tube under state OffUnoccupiedClosed, because the
device is off, measure does nothing.
|
removeTestTube, setTestTube, takeDialAction
public OffUnoccupiedClosed(SpectroBehavior state)
public double measure()
measure
in class SpectroState
public void flipSwitch()
flipSwitch
in class SpectroState
public void flipLid()
flipLid
in class SpectroState