Module state :: Class State
[hide private]
[frames] | no frames]

Class State

source code

This is a base class for the world state.

Instance Methods [hide private]
 
__init__(self, sea, ships, shipExternalStates)
Initialize the world state that is external to the agent.
source code
 
__str__(self) source code
Method Details [hide private]

__init__(self, sea, ships, shipExternalStates)
(Constructor)

source code 

Initialize the world state that is external to the agent.

Parameters:
  • sea (Sea) - the sea model
  • ships (array of Ship) - the ships being simulated
  • shipExternalStates (array of ShipExternalStates) - the external states of the ships, namely their global positions