dan mackinlay avatar dan mackinlay committed 75d8e3f

better skeleton

Comments (0)

Files changed (1)

phenosynth/controllers.sc

   details to be abstracted away, and to track resources needing freeing.*/
   
   //Instance vars are all public to aid debugging, but, honestly, don't
-  //touch 'em.
+  //touch 'em. Why would you touch them?
+  var <server;
+  var <queue;
+  var <all;
+  *new {|server|
+    ^newCopyArgs(server).init;
+  }
+  init {
+    all = IdentityDictionary.new;
+    queue = (queue ?? {PSServerQueue.new(server);});
+  }
+  playIndividual {|phenome|
+    NotYetImplementedError.new.throw;
+  }
+  freeIndividual {|phenome|
+    NotYetImplementedError.new.throw;
+  }
+  updateFitnesses {
+    Not YetImplementedError.new.throw;
+  }
 }
 
 PSServerQueue {
   //a queue to service instructions, waiting on sync from a particular server
-  var <>server;
-  var <>fifo;
-  var <>worker;
-  var <flag;
+  var <server;
+  var <fifo;
+  var <worker;
+  var flag;
   *new {|server|
     ^super.newCopyArgs(server ? Server.default).init;
   }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.