Documentation of 'org.jgap.audit.TimedMonitor' Java class
TimedMonitor
org.jgap.audit

Class TimedMonitor

  • All Implemented Interfaces:
    java.io.Serializable, IEvolutionMonitor


    public class TimedMonitor
    extends java.lang.Object
    implements IEvolutionMonitor
    Monitors the evolution and stops it after a given number of seconds.
    Since:
    3.4.4
    See Also:
    Serialized Form
    • Constructor Detail

      • TimedMonitor

        public TimedMonitor(int a_seconds)
        Constructor.
        Parameters:
        a_seconds - number of seconds to let the evolution run
        Since:
        3.4.4
    • Method Detail

      • nextCycle

        public boolean nextCycle(Population a_pop,
                                 java.util.List<java.lang.String> a_messages)
        Called after another evolution cycle has been executed.
        Specified by:
        nextCycle in interface IEvolutionMonitor
        Parameters:
        a_pop - the currently evolved population
        a_messages - the monitor can append messages here to indicate why it asks evolution to stop
        Returns:
        true: continue with the evolution; false: stop evolution
        Since:
        3.4.4
      • start

        public void start(Configuration a_config)
        Called just before the evolution starts.
        Specified by:
        start in interface IEvolutionMonitor
        Parameters:
        a_config - the configuration used
        Since:
        3.4.4
      • event

        public void event(java.lang.String a_monitorEvent,
                          int a_evolutionNo,
                          java.lang.Object[] a_information)
        Called whenever it's worth monitoring.
        Specified by:
        event in interface IEvolutionMonitor
        Parameters:
        a_monitorEvent - see constants at top of class IEvolutionMonitor
        a_evolutionNo - the index of the evolution round (1, 2, ...)
        a_information - event-specific information
        Since:
        3.5

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.