public abstract class SGAgentBase extends java.lang.Object implements SGAgent
Modifier and Type | Field and Description |
---|---|
protected SGAgentType |
agentType |
protected SGDomain |
domain |
protected JointRewardFunction |
internalRewardFunction |
protected World |
world |
protected java.lang.String |
worldAgentName |
Constructor and Description |
---|
SGAgentBase() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
agentName()
Returns this agent's name
|
SGAgentType |
agentType()
Returns this agent's type
|
JointRewardFunction |
getInternalRewardFunction()
Returns the internal reward function used by the agent.
|
void |
init(SGDomain domain) |
void |
init(SGDomain domain,
java.lang.String agentName,
SGAgentType type) |
SGAgentBase |
setAgentDetails(java.lang.String agentName,
SGAgentType type) |
void |
setInternalRewardFunction(JointRewardFunction rf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
action, gameStarting, gameTerminated, observeOutcome
protected World world
protected SGDomain domain
protected JointRewardFunction internalRewardFunction
protected SGAgentType agentType
protected java.lang.String worldAgentName
public void init(SGDomain domain)
public void init(SGDomain domain, java.lang.String agentName, SGAgentType type)
public SGAgentBase setAgentDetails(java.lang.String agentName, SGAgentType type)
public void setInternalRewardFunction(JointRewardFunction rf)
public JointRewardFunction getInternalRewardFunction()
public java.lang.String agentName()
public SGAgentType agentType()