|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.util.Observable
|
+--lnsc.page.AbstractObservableAgent
Optional basis for class implementing Agent interface. Derived
classes constructor must fill the protected variables. Add necessary Agent
information and properties. In general setEvalMode should be overrided.
Same as AbstractAgent, but derived from java.util.Observer.
Agent could themselves notify their oberver by the end ot the Agent.requestAction(lnsc.page.State) process, or should at least call #setChanged().
notifyObservers() send a {@link #toDataSet} description by default.
Agents are assumed serializable! Episode state information should be transient! The observers list is not!
| Constructor Summary | |
AbstractObservableAgent()
|
|
| Method Summary | |
boolean |
getEvalMode()
Indicates whether the agent is in evaluation mode. |
boolean |
isAdaptive()
Indicates whether the agent is static (never adapts, no learning) or adaptives (the agents learn). |
boolean |
isEvaluable()
Indicates whether the agent can be placed in eval mode. |
void |
notifyObservers()
|
void |
setEvalMode(boolean newEvalMode)
Sets the agent in evaluation mode, that is, no training should append. |
DataSet |
toDataSet()
Similar to the toString method, but return state content in the form of a DataSet. |
| Methods inherited from class java.util.Observable |
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface lnsc.page.Agent |
endEpisode, newEpisode, requestAction, returnReward |
| Constructor Detail |
public AbstractObservableAgent()
| Method Detail |
public boolean getEvalMode()
Agent
getEvalMode in interface Agentpublic boolean isAdaptive()
Agent
isAdaptive in interface Agentpublic boolean isEvaluable()
Agent
isEvaluable in interface Agentpublic void notifyObservers()
notifyObservers in class java.util.Observablepublic void setEvalMode(boolean newEvalMode)
Agent
setEvalMode in interface AgentnewEvalMode - true to set it into evaluation mode.
false to set it into normal possibly adaptive mode.public DataSet toDataSet()
Agent
toDataSet in interface Agent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||