public final class StRedLight
extends java.lang.Object
getInstance()
method to get an instance
, then through powerOn()
method to enable red light
, when stopped run powerOff()
to disable red light.
getInstance()
Modifier and Type | Method and Description |
---|---|
static StRedLight |
getInstance()
Get an instance of read light.
|
void |
powerOff()
disable red light
|
void |
powerOn()
enable red light
|
public static final StRedLight getInstance()
powerOn()
,
powerOff()
public void powerOn()
powerOff()
public void powerOff()
powerOn()