evolution
Interface Evolver

All Known Implementing Classes:
Construction, CreationPower, Evolution.LivingBeingTester, Human, SquareOfLand

public interface Evolver

Interface for objects which want to register by the Evolution manager.


Method Summary
 voidevolve(double value)
          This method is called when the Evolver should evolve to the next state.
 doublegetPriority()
          Return the priority of this evolver
 doublemaxEnergyProduction(Map maxProduction, Map leftOver)
          Return the maximum energy production of this evolver.
 booleanproducesEnergy()
          Check whether this evolver produces energy or not.

Method Detail

evolve

public void evolve(double value)
This method is called when the Evolver should evolve to the next state.

getPriority

public double getPriority()
Return the priority of this evolver

maxEnergyProduction

public double maxEnergyProduction(Map maxProduction, Map leftOver)
Return the maximum energy production of this evolver.
Parameters:
maxProduction - A (String, Double) map wich holds the maximal production of worldresources.
leftOver - A (String, Double) map wich holds the actual status of worldresources in calculating the maximum energy production.

producesEnergy

public boolean producesEnergy()
Check whether this evolver produces energy or not.

a gvijf production