Skip to content

Commit

Permalink
PM encapsulate..
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellblazer committed Aug 19, 2023
1 parent 8c40357 commit fc856ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
import javax.vecmath.Point3i;

import com.hellblazer.primeMover.controllers.SteppingController;
import com.hellblazer.primeMover.runtime.Framework;
import com.hellblazer.primeMover.runtime.Kairos;
import com.hellblazer.thoth.impl.Node;
import com.hellblazer.thoth.impl.Perceptron;

Expand All @@ -57,7 +57,7 @@ class RefreshTask extends TimerTask {
@Override
public void run() {
synchronized (sync) {
Framework.setController(controller);
Kairos.setController(controller);
if (next_ready) {
steps++;
for (DisplayedEntity entity : entities) {
Expand Down Expand Up @@ -135,7 +135,7 @@ public void destory() {
@SuppressWarnings({ "unchecked" })
public void init() {
controller = new SteppingController();
Framework.setController(controller);
Kairos.setController(controller);
controller.setCurrentTime(0);
System.err.println("Thoth demo (Java applet version) Hal Hildebrand (c) 2008");
setSize(dim_x, dim_y);
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/com/hellblazer/thoth/impl/PerceptronTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

import com.hellblazer.geometry.Vector3i;
import com.hellblazer.primeMover.controllers.SteppingController;
import com.hellblazer.primeMover.runtime.Framework;
import com.hellblazer.primeMover.runtime.Kairos;
import com.hellblazer.thoth.Perceiving;

/**
Expand All @@ -48,7 +48,7 @@ public class PerceptronTest {
@SuppressWarnings({ "unchecked", "rawtypes" })
public void testTracking() throws Throwable {
SteppingController controller = new SteppingController();
Framework.setController(controller);
Kairos.setController(controller);
controller.setCurrentTime(0);

int x = 1000;
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/com/hellblazer/thoth/impl/SimulationDriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import com.hellblazer.primeMover.Kronos;
import com.hellblazer.primeMover.controllers.SimulationController;
import com.hellblazer.primeMover.runtime.Framework;
import com.hellblazer.primeMover.runtime.Kairos;
import com.hellblazer.thoth.Perceiving;

/**
Expand All @@ -53,7 +53,7 @@ public class SimulationDriver {

public static void main(String[] argv) throws Exception {
SimulationController controller = new SimulationController();
Framework.setController(controller);
Kairos.setController(controller);
long now = System.currentTimeMillis();
new SimulationDriver().run();
controller.eventLoop();
Expand Down

0 comments on commit fc856ef

Please sign in to comment.