001package headfirst.command.party;
002
003public class HottubOnCommand implements Command {
004        Hottub hottub;
005
006        public HottubOnCommand(Hottub hottub) {
007                this.hottub = hottub;
008        }
009        public void execute() {
010                hottub.on();
011                hottub.setTemperature(104);
012                hottub.circulate();
013        }
014        public void undo() {
015                hottub.off();
016        }
017}