public class HeartController extends java.lang.Object implements ControllerInterface
Modifier and Type | Field and Description |
---|---|
(package private) HeartModelInterface |
model |
(package private) DJView |
view |
Constructor and Description |
---|
HeartController(HeartModelInterface model) |
Modifier and Type | Method and Description |
---|---|
void |
decreaseBPM() |
void |
increaseBPM() |
void |
setBPM(int bpm) |
void |
start() |
void |
stop() |
HeartModelInterface model
public HeartController(HeartModelInterface model)
public void start()
start
in interface ControllerInterface
public void stop()
stop
in interface ControllerInterface
public void increaseBPM()
increaseBPM
in interface ControllerInterface
public void decreaseBPM()
decreaseBPM
in interface ControllerInterface
public void setBPM(int bpm)
setBPM
in interface ControllerInterface