public class LocalModelFirstExp extends LocalModelAgent implements java.io.Serializable
Constructor and Description |
---|
LocalModelFirstExp(World world)
Instantiates a new local model first exp.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFormula(Context context)
Gets the formula.
|
double |
getProposition(Context context)
Gets the proposition.
|
double |
getProposition(Context context,
Percept p1,
Percept p2,
double v1,
double v2)
Version of getProposition for 2D display.
|
void |
updateModel(Context context)
Update model.
|
computeAMessage, die, getTargets
getWorld, play, setWorld
getID, getMessages, getMessagesBin, getName, isDying, readMessage, sendExpressMessage, sendMessage, sendMessage, setDying, setID, setMessages, setMessagesBin, setName
public LocalModelFirstExp(World world)
world
- the worldpublic double getProposition(Context context)
LocalModelAgent
getProposition
in class LocalModelAgent
context
- the contextpublic double getProposition(Context context, Percept p1, Percept p2, double v1, double v2)
LocalModelAgent
getProposition
in class LocalModelAgent
context
- the contextp1
- the p 1p2
- the p 2v1
- the v 1v2
- the v 2public java.lang.String getFormula(Context context)
LocalModelAgent
getFormula
in class LocalModelAgent
context
- the contextpublic void updateModel(Context context)
LocalModelAgent
updateModel
in class LocalModelAgent
context
- the context