Package eu.iv4xr.framework.mainConcepts
Class Iv4xrEnvironment
java.lang.Object
nl.uu.cs.aplib.mainConcepts.Environment
eu.iv4xr.framework.mainConcepts.Iv4xrEnvironment
- Direct Known Subclasses:
MyAgentEnv
,W3DEnvironment
An extension of the standard
Environment
.
The extra feature is that the method observe(String)
now returns
the observation as an instance of WorldModel
.
Note that this class is not use-ready. You have to implement several methods
- Author:
- Wish
-
Nested Class Summary
Nested classes/interfaces inherited from class nl.uu.cs.aplib.mainConcepts.Environment
Environment.EnvironmentInstrumenter, Environment.EnvOperation
-
Field Summary
Fields inherited from class nl.uu.cs.aplib.mainConcepts.Environment
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionYou should implement this method.You can implement this method.Methods inherited from class nl.uu.cs.aplib.mainConcepts.Environment
getLastOperation, instrument, registerInstrumenter, removeInstrumenter, resetAndInstrument, resetWorker, sendCommand, sendCommand, sendCommand_, turnOffDebugInstrumentation, turnOnDebugInstrumentation
-
Constructor Details
-
Iv4xrEnvironment
public Iv4xrEnvironment()
-
-
Method Details
-
observe
You should implement this method.This method should send a command to the real environment that will cause it to send back what the agent of the given id observes in the real environment. This method should translate the obtained observation to an a
WorldModel
and return this world-model.- Overrides:
observe
in classEnvironment
- Parameters:
agentId
- The id of the agent whose observation is requested.- Returns:
- An instance of WorldModel representing what the specified agent observes.