Last updated on Sep 04, 2024.

netsse.base.Platform#

class netsse.base.Platform(name: str = None, owner: str = 'undefined', operations: list = [], seastate_collections: list = [])#

Initialises the platform.

Parameters:
  • name (str, optional) – Name of the platform. By default, the name string is generated randomly in the format PlatformXXXXX.

  • owner (str, default 'undefined') – Platform owner.

  • operations (list, default []) – List of operations.

  • seastate_collections (list, default []) – List of sea state collections (as SeaStateCollec instances).

See also

Network, Operation, SeaStateCollec, Vessel, Buoy, WaveRadar

Example

>>> operation1 = netsse.base.Operation()
>>> seastatecollec1 = netsse.base.SeaStateCollec()
>>> platform1 = netsse.base.Platform(name='MyPlatform',owner='SomeCompany',        ...                                  operations=[operation1],        ...                                  seastate_collections=[seastatecollec1])

Methods#

add_operation(*args[, ignore_msg])

Add an Operation instance to the list of operations of the platform.

remove_operation(*args[, ignore_msg])

Remove an existing Operation instance from the list of operations of the

add_seastatecollec(*args[, ignore_msg])

Add a SeaStateCollec instance to the list of sea state collections

remove_seastatecollec(*args[, ignore_msg])

Remove an existing SeaStateCollec instance from the list of sea state collections