Module agents :: Class AgentWorldModelCompleteWorld
[hide private]
[frames] | no frames]

Class AgentWorldModelCompleteWorld

source code


Just a skeleton for testing purposes. The world model is exactly the world state.

Instance Methods [hide private]
 
__init__(self, shipIndex)
Every world model contains a queue for incoming messages.
source code
 
processPercepts(self, perceptsList)
Just search for the CompleteStatePercept and save the state from it
source code
A list of ShipExternalState
getEstimatedStatesOfOtherShips(self, selfIndex)
Implements the abstract method
source code
A list of ShipExternalState
getEstimatedStatesOfShips(self, shipIndices)
Implements the abstract method
source code
ShipExternalState
getEstimatedExtShipState(self)
Implements the abstract method
source code
numpy array (vector)
getEstimatedWindVector(self)
Implements the abstract method
source code
numpy array (vector)
getEstimatedWaterVector(self)
Implements the abstract method
source code
Obstacles
getEstimatedObstaclesList(self)
Implements the abstract method
source code

Inherited from AgentWorldModel: cleanMsgQueue, receiveMsg

Method Details [hide private]

__init__(self, shipIndex)
(Constructor)

source code 

Every world model contains a queue for incoming messages. Note that outgoing msgs are inside strategy. TODO: does this design need change?

Overrides: AgentWorldModel.__init__
(inherited documentation)

processPercepts(self, perceptsList)

source code 

Just search for the CompleteStatePercept and save the state from it

Parameters:
  • perceptsList - A list of percepts to be processed
Overrides: AgentWorldModel.processPercepts

getEstimatedStatesOfOtherShips(self, selfIndex)

source code 

Implements the abstract method

Parameters:
  • selfIndex - The index of the ship controlled by the agent - we don't want to include it in the returned states.
Returns: A list of ShipExternalState
A list of estimated states of all other ships in the system
Overrides: AgentWorldModel.getEstimatedStatesOfOtherShips

getEstimatedStatesOfShips(self, shipIndices)

source code 

Implements the abstract method

Parameters:
  • selfIndex - The indices of the ships for which location is estimated
Returns: A list of ShipExternalState
A list of estimated states of all other ships in the system
Overrides: AgentWorldModel.getEstimatedStatesOfShips

getEstimatedExtShipState(self)

source code 

Implements the abstract method

Returns: ShipExternalState
An estimation of the ship's real state according to our AgentWorldModel.
Overrides: AgentWorldModel.getEstimatedExtShipState

getEstimatedWindVector(self)

source code 

Implements the abstract method

Returns: numpy array (vector)
an estimation of the wind vector (speed and direction) in the agent's location according to our AgentWorldModel.
Overrides: AgentWorldModel.getEstimatedWindVector

getEstimatedWaterVector(self)

source code 

Implements the abstract method

Returns: numpy array (vector)
an estimation of the water vector (speed and direction) in the agent's location according to our AgentWorldModel.
Overrides: AgentWorldModel.getEstimatedWaterVector

getEstimatedObstaclesList(self)

source code 

Implements the abstract method

Returns: Obstacles
an estimation of the obstacles shapes (and positions) according to our AgentWorldModel.
Overrides: AgentWorldModel.getEstimatedObstaclesList