jaga.pj.circuits
Class  SimulatorDeployment
java.lang.Object
  |
  +--jaga.pj.circuits.SimulatorDeployment
- All Implemented Interfaces: 
 - Deployment, java.io.Serializable
 
- public class SimulatorDeployment
- extends java.lang.Object
- implements Deployment
   
- See Also: 
 - Serialized Form
 
 
| 
Method Summary | 
 SimulatorCircuit | 
getCircuit()
 
            | 
 int | 
getRecommendedInputSampleSeparation()
 
          returns a suggested value for what the sample separation of inputs
 to this deployment should be compared to a default output sample
 separation of 1. | 
 void | 
program(BitSet genotype)
 
          This is done by
 1) Instantiating all the Gates
 2) Connecting the inputs
 3) Connecting the outputs
 4) Connecting the Gates between themselves; | 
 SampleData[] | 
run(SampleData[] inputData)
 
          send the inputs and record the outputs | 
 void | 
setEnvironment(java.lang.Object value)
 
          Method to modify the conditions of this deployment. | 
 java.lang.String | 
toString()
 
            | 
 
| Methods inherited from class java.lang.Object | 
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
SimulatorDeployment
public SimulatorDeployment(SimulatorCircuit circuit,
                           boolean alwaysRandomResetBeforeRun)
SimulatorDeployment
public SimulatorDeployment(SimulatorCircuit circuit)
- Creates new SimulatorDeployment
 
program
public void program(BitSet genotype)
- This is done by
 1) Instantiating all the Gates
 2) Connecting the inputs
 3) Connecting the outputs
 4) Connecting the Gates between themselves;
- Specified by: 
 program in interface Deployment
 
 
run
public SampleData[] run(SampleData[] inputData)
- Description copied from interface: 
Deployment 
- send the inputs and record the outputs
- Specified by: 
 run in interface Deployment
 
 
getRecommendedInputSampleSeparation
public int getRecommendedInputSampleSeparation()
- returns a suggested value for what the sample separation of inputs
 to this deployment should be compared to a default output sample
 separation of 1.
- Specified by: 
 getRecommendedInputSampleSeparation in interface Deployment
 
 
toString
public java.lang.String toString()
- Overrides:
 toString in class java.lang.Object
 
getCircuit
public SimulatorCircuit getCircuit()
 
setEnvironment
public void setEnvironment(java.lang.Object value)
- Description copied from interface: 
Deployment 
- Method to modify the conditions of this deployment.  For example this
 may be used so that between trials in a robot arena all positions of 
 objects are randomized to the same place for individuals of the same
 generations and different places for individuals of different generations.
- Specified by: 
 setEnvironment in interface Deployment