public class AgentFactoryWithSubjectiveReward extends java.lang.Object implements AgentFactory
AgentFactory
and the returned agent from
that provided agent has its internal reward function set to the one specified for use
in this factory. The agent is then returned by this factory.Modifier and Type | Field and Description |
---|---|
protected AgentFactory |
baseFactory |
protected JointRewardFunction |
internalReward |
Constructor and Description |
---|
AgentFactoryWithSubjectiveReward(AgentFactory baseFactory,
JointRewardFunction internalReward)
Initializes the factory.
|
Modifier and Type | Method and Description |
---|---|
SGAgent |
generateAgent(java.lang.String agentName,
SGAgentType type)
Generates a new
SGAgent |
protected AgentFactory baseFactory
protected JointRewardFunction internalReward
public AgentFactoryWithSubjectiveReward(AgentFactory baseFactory, JointRewardFunction internalReward)
baseFactory
- the base factory for generating an agent.internalReward
- the internal reward function to set the agent to use.public SGAgent generateAgent(java.lang.String agentName, SGAgentType type)
AgentFactory
SGAgent
generateAgent
in interface AgentFactory
agentName
- the name for the agenttype
- the SGAgentType
for the agentSGAgent