public class GlasActionSelection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
INTERMEDIATE_NODE |
static int |
ROOT_NODE |
static int |
SEQUENCE_END_NODE |
static int |
SEQUENCE_START_NODE |
Constructor and Description |
---|
GlasActionSelection(int[] solution_tree_phenotype)
Chromossome (Phenotype) of the new StateMachine
|
Modifier and Type | Method and Description |
---|---|
int[] |
getActions_history() |
int[] |
getActions() |
int[] |
getChromossome() |
int[] |
getContents() |
int |
getCurrent_node_type() |
int |
getnNodes() |
int[] |
getNodes_history() |
int[] |
getNodes_types() |
int[] |
getStructure() |
int |
goBackToOriginalSN(int current_node_minus_1,
int stim) |
void |
reset() |
int[] |
runStimuli(int[] stimuli)
This method implements a state machine with 4 sates.
|
void |
setActions_history(int[] actions_history) |
void |
setActions(int[] actions) |
void |
setChromossome(int[] chromossome) |
void |
setContents(int[] contents) |
void |
setCurrent_node_type(int current_node_type) |
void |
setnNodes(int nNodes) |
void |
setNodes_history(int[] nodes_history) |
void |
setNodes_types(int[] nodes_types) |
void |
setStructure(int[] structure) |
void |
updateNodesTypes() |
public static int ROOT_NODE
public static int SEQUENCE_START_NODE
public static int INTERMEDIATE_NODE
public static int SEQUENCE_END_NODE
public GlasActionSelection(int[] solution_tree_phenotype)
solution_tree_phenotype
- public void updateNodesTypes()
public int[] getChromossome()
public void setChromossome(int[] chromossome)
chromossome
- the chromossome to setpublic int[] getNodes_types()
public void setNodes_types(int[] nodes_types)
nodes_types
- the nodes_types to setpublic int getCurrent_node_type()
public void setCurrent_node_type(int current_node_type)
current_node_type
- the current_node_type to setpublic int[] runStimuli(int[] stimuli)
public int goBackToOriginalSN(int current_node_minus_1, int stim)
public void reset()
public int[] getActions_history()
public void setActions_history(int[] actions_history)
actions_history
- the actions_history to setpublic int[] getNodes_history()
public void setNodes_history(int[] nodes_history)
nodes_history
- the nodes_history to setpublic int getnNodes()
public void setnNodes(int nNodes)
nNodes
- the nNodes to setpublic int[] getStructure()
public void setStructure(int[] structure)
structure
- the structure to setpublic int[] getContents()
public void setContents(int[] contents)
contents
- the contents to setpublic int[] getActions()
public void setActions(int[] actions)
actions
- the actions to set