Skip to content

Commit c3510ea

Browse files
authored
PIA Refactoring (#128)
* Refactor PIAs to be self-contained. * Clean up PIA code.
1 parent cd43b31 commit c3510ea

File tree

11 files changed

+956
-438
lines changed

11 files changed

+956
-438
lines changed

src/main/java/ca/craigthomas/yacoco3e/components/Cassette.java

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,10 @@ public Cassette() {
6767
}
6868

6969
/**
70-
* Turns the cassette motor off.
70+
* Turns the cassette motor on or off.
7171
*/
72-
public void motorOff() {
73-
motorOn = false;
74-
}
75-
76-
/**
77-
* Turns the cassette motor on.
78-
*/
79-
public void motorOn() {
80-
motorOn = true;
72+
public void setMotorOn(boolean turnOn) {
73+
motorOn = turnOn;
8174
}
8275

8376
public boolean isMotorOn() {

0 commit comments

Comments
 (0)