public class TrainableSoci
extends java.lang.Object
implements trainingdeck.TrainableSim
Modifier and Type | Field and Description |
---|---|
private static int |
NUM_ITERATIONS
The number of iterations is fixed to one, because
the simulation has been simplied according to
ATABS approach with Deck random generators
|
private Simulation |
simulation
Simulation of ABS-SOCI
|
Constructor and Description |
---|
TrainableSoci() |
Modifier and Type | Method and Description |
---|---|
private void |
createAgents(java.util.HashMap<java.lang.String,java.lang.Object> input)
It creates a list of agent for a certain simulation input
|
int |
getDeckValue(java.lang.String nameDeckChoice,
int[] indexes)
It gets the value of a deck for a specific choice.
|
java.util.HashMap<java.lang.String,java.lang.Object> |
runSimulation(java.util.HashMap<java.lang.String,java.lang.Object> input)
It runs a simulation with the input and output in a
generic format for being trained.
|
void |
setDeckValue(java.lang.String nameDeckChoice,
int[] indexes,
int value)
It sets the value of of a deck for a specific choice.
|
private Simulation simulation
private static final int NUM_ITERATIONS
public java.util.HashMap<java.lang.String,java.lang.Object> runSimulation(java.util.HashMap<java.lang.String,java.lang.Object> input)
runSimulation
in interface trainingdeck.TrainableSim
input
- The input parameters of simulation with
a Map with their names and their values. These parameters
are "quite", "participant", "tangent", "joker", "obstructive"
and "occasional".private void createAgents(java.util.HashMap<java.lang.String,java.lang.Object> input)
input
- Simulation Inputpublic void setDeckValue(java.lang.String nameDeckChoice, int[] indexes, int value)
setDeckValue
in interface trainingdeck.TrainableSim
nameDeckChoice
- A name that identifies a deck and
specific choices.indexes
- If the deck choice values are stored
in a vector/matrix of one or several directions, this
parameter represents the position in this vector/matrix.
Otherwise, this parameter is ignored.value
- Value that is assigned to the specific
choic of the particular deck.public int getDeckValue(java.lang.String nameDeckChoice, int[] indexes)
getDeckValue
in interface trainingdeck.TrainableSim
nameDeckChoice
- A name that identifies a deck and
specific choices. This parameter can be "suitable",
"unsuitable", "coherenceSelection" or "coherenceRejection".indexes
- If the deck choice values are stored
in a vector/matrix of one or several directions, this
parameter represents the position in this vector/matrix.
Otherwise, this parameter is ignored.