ETM Algorithm Termination Settings Wizard Step - ProMWizardStep Implementation
This class implements the 'ProMWizardStep' interface, acting as a step in a wizard for the ETM algorithm. Its purpose is to allow users to configure termination conditions for the algorithm. It includes an 'ETMParamAbstract' type member variable 'model' and a 'ProMPropertiesPanel' type member variable 'propertiesPanel'.
The 'ETMTerminationSettingsStep' object is created by calling the constructor of 'ProMHeaderPanel'. Within the constructor, the 'propertiesPanel' is initialized. This panel contains four 'ProMTextField' type members: 'targetFitness', 'maxIterations', 'steadyStates', and 'maxDuration'. These fields are used to set the algorithm's target fitness, maximum iterations, number of steady states, and maximum runtime respectively.
The 'updateModel' method updates the 'model' object based on the settings from the GUI. Conversely, the 'setModel' method updates the UI fields based on the provided 'model' object.
The class also implements the four methods of the 'ProMWizardStep' interface: 'apply', 'canApply', 'getComponent', and 'getTitle'.
-
The 'apply' method applies the settings from the GUI to the provided 'model' object.
-
The 'canApply' method always returns 'true'.
-
The 'getComponent' method returns the object itself and updates the UI fields with the provided 'model' object.
-
The 'getTitle' method returns 'ETM: Termination Settings'.
原文地址: https://www.cveoy.top/t/topic/ogPk 著作权归作者所有。请勿转载和采集!