MCPcopy Create free account
hub / github.com/badvision/jace / setMotherboard

Method setMotherboard

src/main/java/jace/core/Computer.java:78–83  ·  view source on GitHub ↗
(Motherboard m)

Source from the content-addressed store, hash-verified

76
77 ChangeListener<Boolean> runningPropertyListener = (prop, oldVal, newVal) -> runningProperty.set(newVal);
78 final public void setMotherboard(Motherboard m) {
79 if (motherboard != null && motherboard.isRunning()) {
80 motherboard.suspend();
81 }
82 motherboard = m;
83 }
84
85 public BooleanProperty getRunningProperty() {
86 return runningProperty;

Callers 1

Apple2eMethod · 0.80

Calls 2

isRunningMethod · 0.45
suspendMethod · 0.45

Tested by

no test coverage detected