morey.spore
Class ProcessorControls

java.lang.Object
  |
  +--morey.spore.ProcessorControls

public class ProcessorControls
extends java.lang.Object

a set of controls to handle the Processor

Here is a link to the source code

See Also:
Processor

Field Summary
protected  java.lang.String content
           
protected  Processor cpu
           
 
Constructor Summary
ProcessorControls()
           
 
Method Summary
protected  void add(double x, double y, double angle, java.lang.String prog, int team)
           
 void clear()
           
protected  void load(java.lang.String filename)
          loads a file into the content field of this SimpleWall.
protected  void sendCode(java.lang.String code)
          puts the "program" from the code into the Processor
protected  void sendContent()
          send the content to the Processor
 void start()
           
 void step()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cpu

protected Processor cpu

content

protected java.lang.String content
Constructor Detail

ProcessorControls

public ProcessorControls()
Method Detail

sendCode

protected void sendCode(java.lang.String code)
puts the "program" from the code into the Processor
Parameters:
code - - the unparsed (genetic) code for a spore

load

protected void load(java.lang.String filename)
loads a file into the content field of this SimpleWall. There a few checks to see if it's a filename or URL
Parameters:
filename - - the file name / URL where thet codes will be found

sendContent

protected void sendContent()
send the content to the Processor

start

public void start()

stop

public void stop()

step

public void step()

add

protected void add(double x,
                   double y,
                   double angle,
                   java.lang.String prog,
                   int team)

clear

public void clear()