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 an Operation instance to the list of operations of the platform. |
|
Remove an existing Operation instance from the list of operations of the |
|
Add a SeaStateCollec instance to the list of sea state collections |
|
Remove an existing SeaStateCollec instance from the list of sea state collections |