001package headfirst.command.remote;
002
003public class HottubOnCommand implements Command {
004 Hottub hottub;
005
006 public HottubOnCommand(Hottub hottub) {
007 this.hottub = hottub;
008 }
009
010 public void execute() {
011 hottub.on();
012 hottub.heat();
013 hottub.bubblesOn();
014 }
015}