public class HeartAdapter extends java.lang.Object implements BeatModelInterface
Modifier and Type | Field and Description |
---|---|
(package private) HeartModelInterface |
heart |
Constructor and Description |
---|
HeartAdapter(HeartModelInterface heart) |
Modifier and Type | Method and Description |
---|---|
int |
getBPM() |
void |
initialize() |
void |
off() |
void |
on() |
void |
registerObserver(BeatObserver o) |
void |
registerObserver(BPMObserver o) |
void |
removeObserver(BeatObserver o) |
void |
removeObserver(BPMObserver o) |
void |
setBPM(int bpm) |
HeartModelInterface heart
public HeartAdapter(HeartModelInterface heart)
public void initialize()
initialize
in interface BeatModelInterface
public void on()
on
in interface BeatModelInterface
public void off()
off
in interface BeatModelInterface
public int getBPM()
getBPM
in interface BeatModelInterface
public void setBPM(int bpm)
setBPM
in interface BeatModelInterface
public void registerObserver(BeatObserver o)
registerObserver
in interface BeatModelInterface
public void removeObserver(BeatObserver o)
removeObserver
in interface BeatModelInterface
public void registerObserver(BPMObserver o)
registerObserver
in interface BeatModelInterface
public void removeObserver(BPMObserver o)
removeObserver
in interface BeatModelInterface