public class Light extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) int |
level |
(package private) java.lang.String |
location |
Constructor and Description |
---|
Light(java.lang.String location) |
Modifier and Type | Method and Description |
---|---|
void |
dim(int level) |
int |
getLevel() |
void |
off() |
void |
on() |