Package edu.cnu.mdi.sim.ga.triimage
Interface IImageEvolutionResettable
- All Known Implementing Classes:
ImageEvolutionDemoView
public interface IImageEvolutionResettable
Narrow reset contract for the image evolution demo.
Implemented by ImageEvolutionDemoView so that
ImageEvolutionControlPanel can request a reset without coupling to
the view's concrete type — exactly the same pattern used by
IResettable in the network decluttering demo.
-
Method Summary
Modifier and TypeMethodDescriptionvoidrequestReset(int numTriangles, int populationSize, ImageFitnessMode fitnessMode) Request a reset with the given parameters.
-
Method Details
-
requestReset
Request a reset with the given parameters.Implementations should stop the current engine, build a new simulation with the supplied parameters, and restart. This should only be called when the simulation is in a safe state (READY, PAUSED, TERMINATED, or FAILED); the control panel is responsible for enforcing this via button enable/disable logic.
- Parameters:
numTriangles- number of triangles per chromosome (must be > 0)populationSize- number of individuals in the population (must be > 0)fitnessMode- fitness metric for the new run
-