public class AgentModel
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
ModelConstruction |
modelConstruction
The model construction.
|
| Constructor and Description |
|---|
AgentModel(int nbrOfPerceptions,
java.lang.String Id,
double precision,
double incrmt,
ModelConstruction typeOfModelConstruction)
Instantiates a new agent model.
|
AgentModel(int nbrOfPerceptions,
java.lang.String Id,
double precision,
double incrmt,
ModelConstruction typeOfModelConstruction,
int initIndice,
double initValue)
Instantiates a new agent model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
adaptLocalModel(int modelIndice,
int sensibilityIndice,
double incrementSign,
java.lang.String[] sortedSensib,
double criticity)
Adapt local model.
|
java.lang.Double[] |
getLocalModel()
Gets the local model.
|
java.lang.Double[] |
getMeanLocalModel()
Gets the mean local model.
|
void |
stopWriting()
Stop writing.
|
void |
updateModel(java.util.HashMap<java.lang.String,java.lang.Double> perceptions,
java.lang.Double command,
java.lang.String[] sortedSensib,
java.util.HashMap<java.lang.String,java.lang.Double> sensibilities)
Update model.
|
public ModelConstruction modelConstruction
public AgentModel(int nbrOfPerceptions,
java.lang.String Id,
double precision,
double incrmt,
ModelConstruction typeOfModelConstruction)
nbrOfPerceptions - the nbr of perceptionsId - the idprecision - the precisionincrmt - the incrmttypeOfModelConstruction - the type of model constructionpublic AgentModel(int nbrOfPerceptions,
java.lang.String Id,
double precision,
double incrmt,
ModelConstruction typeOfModelConstruction,
int initIndice,
double initValue)
nbrOfPerceptions - the nbr of perceptionsId - the idprecision - the precisionincrmt - the incrmttypeOfModelConstruction - the type of model constructioninitIndice - the init indiceinitValue - the init valuepublic void updateModel(java.util.HashMap<java.lang.String,java.lang.Double> perceptions,
java.lang.Double command,
java.lang.String[] sortedSensib,
java.util.HashMap<java.lang.String,java.lang.Double> sensibilities)
perceptions - the perceptionscommand - the commandsortedSensib - the sorted sensibsensibilities - the sensibilitiespublic void adaptLocalModel(int modelIndice,
int sensibilityIndice,
double incrementSign,
java.lang.String[] sortedSensib,
double criticity)
modelIndice - the model indicesensibilityIndice - the sensibility indiceincrementSign - the increment signsortedSensib - the sorted sensibcriticity - the criticitypublic java.lang.Double[] getLocalModel()
public java.lang.Double[] getMeanLocalModel()
public void stopWriting()