public class OnOccupiedClosed extends SpectroState
Constructor and Description |
---|
OnOccupiedClosed(SpectroBehavior state)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
flipLid()
flips lid, then state changes to OnOccupiedOpen
|
void |
flipSwitch()
flips switch then state changes to OffOccupiedClosed
|
double |
measure()
measures test tube.
|
removeTestTube, setTestTube, takeDialAction
public OnOccupiedClosed(SpectroBehavior state)
state
- public double measure()
measure
in class SpectroState
public void flipSwitch()
flipSwitch
in class SpectroState
public void flipLid()
flipLid
in class SpectroState