Module seaModels :: Class VerticalWaterCurrents
[hide private]
[frames] | no frames]

Class VerticalWaterCurrents

source code


Defines north->south or south->north currents. Was used for the AAAI 11 experiments.

Instance Methods [hide private]
 
__init__(self, regionsAndCurrentsList) source code
 
getSpeedVectorInLocation(self, x, y)
Check stripe and return corresponding current.
source code
 
__str__(self) source code
Method Details [hide private]

__init__(self, regionsAndCurrentsList)
(Constructor)

source code 
Parameters:
  • regionsAndCurrentsList (list of 3-tuples) - a list of 3-tuples, each defines a stripe: (minX, maxX, currentValue), where currentValue is signed to account for direction.
Overrides: WaterCurrents.__init__

getSpeedVectorInLocation(self, x, y)

source code 

Check stripe and return corresponding current.

Overrides: WaterCurrents.getSpeedVectorInLocation