1 /**
2 * @(#)State.java
3 * Copyright (C) 2008-2011 delhezi.com
4 *
5 * This class is released under the:
6 * GNU Lesser General Public License (LGPL) version 3 or later.
7 * http://www.gnu.org/copyleft/lesser.html
8 */
9 package com.delhezi.ga;
10
11 import com.delhezi.ga.exception.GeneticAlgorithmException;
12
13 /**
14 * <code>State</code>: Interfejs wzorca State - określający stan
15 * algorytmu genetycznego.
16 * @version 1.0 2011-01-10
17 * @author <a href="mailto:wojciech.wolszczak@delhezi.com">
18 * Wojciech Wolszczak</a>
19 */
20 public interface State {
21
22 /**
23 * Uruchamia działanie algorytmu gentycznego.
24 * @throws GeneticAlgorithmException xxx
25 * @since 1.0
26 */
27 void run() throws GeneticAlgorithmException;
28
29 /**
30 * Zatrzymuje działanie algorytmu gentycznego.
31 * @throws GeneticAlgorithmException xxx
32 * @since 1.0
33 */
34 void stop() throws GeneticAlgorithmException;
35
36 /**
37 * Zwraca status algorytmu gentycznego.
38 * @return Status algorytmu gegentycznego.
39 * @since 1.0
40 */
41 GeneticAlgorithmState getState();
42 }