Interface ITspDemoResettable
- All Known Implementing Classes:
TspDemoView
public interface ITspDemoResettable
Capability interface implemented by
TspDemoView so that a control panel
can request a model/simulation reset without knowing the concrete view type.-
Method Summary
Modifier and TypeMethodDescriptionvoidrequestReset(int cityCount, double riverPenalty) Request a reset/reinitialization of the demo with the provided parameters.
-
Method Details
-
requestReset
void requestReset(int cityCount, double riverPenalty) Request a reset/reinitialization of the demo with the provided parameters.Implementations should only honor this request when the simulation is in a safe state (typically READY or TERMINATED).
- Parameters:
cityCount- number of cities (e.g. 10..500)riverPenalty- penalty/bonus for crossing the river (e.g. -1..+1)
-