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, setNamepublic abstract void computeAMessage(Message m)
AgentcomputeAMessage in class Agentm - the mpublic java.util.ArrayList<Agent> getTargets()
public void setTargets(java.util.ArrayList<Agent> targets)
targets - the new targetspublic void readMessage()
AgentreadMessage in class Agentpublic 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