Datasets:
ArXiv:
License:
File size: 365 Bytes
c574d3a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
package SimpleSlot;
/**
* Created by Administrator on 2017/6/19.
*/
public class LightOffCommand implements Command
{
Light light;
public LightOffCommand(Light light)
{
this.light = light;
}
@Override
public void execute()
{
light.off();
}
@Override
public void undo()
{
light.on();
}
}
|