blob: dc7fcc8ad72d67136867bf22abefb05565c697a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
package jcgp.gui.population;
import jcgp.gui.population.GUIGene.GUIGeneState;
/**
* A loose equivalent to {@link jcgp.backend.population.Connection}.
* <br>
* This defines behaviour that all GUI representations of connections
* should be capable of.
*
* @author Eduardo Pedroni
*
*/
public interface GUIConnection {
/**
* Set the connection's state, but also recursively propagate that state
* all the way back to the inputs.
*
* @param state the state to set.
*/
public void setStateRecursively(GUIGeneState state);
/**
* Add or remove a lock, but also recursively propagate that change
* all the way back to the inputs.
*
* @param value true to lock, false to unlock.
*/
public void setLockRecursively(boolean value);
}
|