public class RAgent extends Object implements Serializable
| Constructor and Description |
|---|
RAgent() |
RAgent(int stateCount,
int actionCount) |
RAgent(int stateCount,
int actionCount,
double alpha,
double beta,
double rho,
double initialQ) |
| Modifier and Type | Method and Description |
|---|---|
void |
copy(RAgent rhs) |
boolean |
equals(Object obj) |
int |
getCurrentAction() |
int |
getCurrentState() |
RLearner |
getLearner() |
RAgent |
makeCopy() |
IndexValue |
selectAction() |
IndexValue |
selectAction(Set<Integer> actionsAtState) |
void |
setLearner(RLearner learner) |
void |
start(int currentState) |
void |
update(int newState,
double immediateReward) |
void |
update(int newState,
Set<Integer> actionsAtState,
double immediateReward) |
public RAgent()
public RAgent(int stateCount,
int actionCount,
double alpha,
double beta,
double rho,
double initialQ)
public RAgent(int stateCount,
int actionCount)
public int getCurrentState()
public int getCurrentAction()
public void start(int currentState)
public RAgent makeCopy()
public void copy(RAgent rhs)
public IndexValue selectAction()
public IndexValue selectAction(Set<Integer> actionsAtState)
public void update(int newState,
double immediateReward)
public RLearner getLearner()
public void setLearner(RLearner learner)
Copyright © 2017. All rights reserved.