public class Output extends BlackBoxAgent implements java.io.Serializable
Constructor and Description |
---|
Output()
Instantiates a new output.
|
Modifier and Type | Method and Description |
---|---|
void |
computeAMessage(Message m)
Compute A message.
|
void |
fastPlay()
Fast play.
|
BBFunction |
getFunc()
Gets the func.
|
Input |
getInput()
Gets the input.
|
int |
getPort()
Gets the port.
|
double |
getValue()
Gets the value.
|
void |
initSocket()
Inits the socket.
|
void |
play()
Play one agent step.
|
void |
setFunc(BBFunction func)
Sets the func.
|
void |
setInput(Input input)
Sets the input.
|
void |
setPort(int port)
Sets the port.
|
void |
setValue(double value)
Sets the value.
|
addConstraint, computeCriticity, getConstraints, getCriticity, getTargets, getWorstConstraint, readMessage, setConstraints, setCriticity, setTargets
die, getID, getMessages, getMessagesBin, getName, isDying, sendExpressMessage, sendMessage, sendMessage, setDying, setID, setMessages, setMessagesBin, setName
public void play()
Agent
public void fastPlay()
BlackBoxAgent
fastPlay
in class BlackBoxAgent
public void initSocket()
public void computeAMessage(Message m)
Agent
computeAMessage
in class BlackBoxAgent
m
- the mpublic BBFunction getFunc()
public void setFunc(BBFunction func)
func
- the new funcpublic double getValue()
BlackBoxAgent
getValue
in class BlackBoxAgent
public void setValue(double value)
value
- the new valuepublic Input getInput()
public void setInput(Input input)
input
- the new inputpublic int getPort()
public void setPort(int port)
port
- the new port