RsiMachine Next: InterpretorUp: MachinesPrevious: Machines


RsiMachine  extends Machine and has an environment of behaviors and a counter numberOfRuns to control how many runs are created at each instant (the max value is set to 500). Activation means to reset numberOfRuns to 0, to transfer behaviors, and to activate the machine.

public class RsiMachine extends Machine
  public BehavEnv behavEnv = new BehavEnv();

  protected final int maxNumberOfRuns = 500;
  protected int numberOfRuns = 0;

  protected byte activation(Machine machine)
    numberOfRuns = 0;
    return super.activation(machine);