public abstract class BlackBoxAgent extends Agent implements java.io.Serializable
Constructor and Description |
---|
BlackBoxAgent() |
Modifier and Type | Method and Description |
---|---|
void |
addConstraint(Constraint c)
Adds the constraint.
|
abstract void |
computeAMessage(Message m)
Compute A message.
|
void |
computeCriticity()
Compute criticity.
|
abstract void |
fastPlay()
Fast play.
|
java.util.ArrayList<Constraint> |
getConstraints()
Gets the constraints.
|
double |
getCriticity()
Gets the criticity.
|
java.util.ArrayList<Agent> |
getTargets()
Gets the targets.
|
abstract double |
getValue()
Gets the value.
|
Constraint |
getWorstConstraint()
Gets the worst constraint.
|
void |
readMessage()
Read message.
|
void |
setConstraints(java.util.ArrayList<Constraint> constraints)
Sets the constraints.
|
void |
setCriticity(double criticity)
Sets the criticity.
|
void |
setTargets(java.util.ArrayList<Agent> targets)
Sets the targets.
|
die, getID, getMessages, getMessagesBin, getName, isDying, play, sendExpressMessage, sendMessage, sendMessage, setDying, setID, setMessages, setMessagesBin, setName
public abstract void computeAMessage(Message m)
Agent
computeAMessage
in class Agent
m
- the mpublic java.util.ArrayList<Agent> getTargets()
public void setTargets(java.util.ArrayList<Agent> targets)
targets
- the new targetspublic void readMessage()
Agent
readMessage
in class Agent
public abstract double getValue()
public abstract void fastPlay()
public void computeCriticity()
public Constraint getWorstConstraint()
public double getCriticity()
public void setCriticity(double criticity)
criticity
- the new criticitypublic java.util.ArrayList<Constraint> getConstraints()
public void setConstraints(java.util.ArrayList<Constraint> constraints)
constraints
- the new constraintspublic void addConstraint(Constraint c)
c
- the c