pipeline.src.entities.missions

Classes

MissionActionType

Create a collection of name/value pairs.

MissionOrigin

Create a collection of name/value pairs.

MissionType

Create a collection of name/value pairs.

InfractionType

Create a collection of name/value pairs.

Infraction

FlightGoal

Create a collection of name/value pairs.

Module Contents

class pipeline.src.entities.missions.MissionActionType(*args, **kwds)[source]

Bases: enum.Enum

Create a collection of name/value pairs.

Example enumeration:

>>> class Color(Enum):
...     RED = 1
...     BLUE = 2
...     GREEN = 3

Access them by:

  • attribute access:

>>> Color.RED
<Color.RED: 1>
  • value lookup:

>>> Color(1)
<Color.RED: 1>
  • name lookup:

>>> Color['RED']
<Color.RED: 1>

Enumerations can be iterated over, and know how many members they have:

>>> len(Color)
3
>>> list(Color)
[<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]

Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.

SEA_CONTROL = 'SEA_CONTROL'[source]
LAND_CONTROL = 'LAND_CONTROL'[source]
AIR_SURVEILLANCE = 'AIR_SURVEILLANCE'[source]
AIR_CONTROL = 'AIR_CONTROL'[source]
static from_poseidon_control_type(poseidon_control_type: str)[source]
class pipeline.src.entities.missions.MissionOrigin(*args, **kwds)[source]

Bases: enum.Enum

Create a collection of name/value pairs.

Example enumeration:

>>> class Color(Enum):
...     RED = 1
...     BLUE = 2
...     GREEN = 3

Access them by:

  • attribute access:

>>> Color.RED
<Color.RED: 1>
  • value lookup:

>>> Color(1)
<Color.RED: 1>
  • name lookup:

>>> Color['RED']
<Color.RED: 1>

Enumerations can be iterated over, and know how many members they have:

>>> len(Color)
3
>>> list(Color)
[<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]

Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.

POSEIDON_CNSP = 'POSEIDON_CNSP'[source]
POSEIDON_CACEM = 'POSEIDON_CACEM'[source]
MONITORFISH = 'MONITORFISH'[source]
MONITORENV = 'MONITORENV'[source]
class pipeline.src.entities.missions.MissionType(*args, **kwds)[source]

Bases: enum.Enum

Create a collection of name/value pairs.

Example enumeration:

>>> class Color(Enum):
...     RED = 1
...     BLUE = 2
...     GREEN = 3

Access them by:

  • attribute access:

>>> Color.RED
<Color.RED: 1>
  • value lookup:

>>> Color(1)
<Color.RED: 1>
  • name lookup:

>>> Color['RED']
<Color.RED: 1>

Enumerations can be iterated over, and know how many members they have:

>>> len(Color)
3
>>> list(Color)
[<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]

Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.

SEA = 'SEA'[source]
LAND = 'LAND'[source]
AIR = 'AIR'[source]
static from_mission_action_type(mission_action_type: MissionActionType)[source]
class pipeline.src.entities.missions.InfractionType(*args, **kwds)[source]

Bases: enum.Enum

Create a collection of name/value pairs.

Example enumeration:

>>> class Color(Enum):
...     RED = 1
...     BLUE = 2
...     GREEN = 3

Access them by:

  • attribute access:

>>> Color.RED
<Color.RED: 1>
  • value lookup:

>>> Color(1)
<Color.RED: 1>
  • name lookup:

>>> Color['RED']
<Color.RED: 1>

Enumerations can be iterated over, and know how many members they have:

>>> len(Color)
3
>>> list(Color)
[<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]

Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.

WITH_RECORD = 'WITH_RECORD'[source]
WITHOUT_RECORD = 'WITHOUT_RECORD'[source]
from_poseidon_infraction_field()[source]

Translates the infraction field of the Poseidon database into the corresponding InfractionType.

The infraction field of the Poseidon database holds values:

  • 0 for controls without infraction

  • 1 for controls with infraction(s)

  • 2 for controls with infraction(s) but without record (“PV” in french)

In some rare cases, the infraction field has the value 0 although some infractions are present in the control results. In these cases, we’ll consider there was no record.

Parameters:

infraction (int) – 0, 1 or 2

Returns:

InfractionType

class pipeline.src.entities.missions.Infraction[source]
natinf: int[source]
comments: str[source]
class pipeline.src.entities.missions.FlightGoal(*args, **kwds)[source]

Bases: enum.Enum

Create a collection of name/value pairs.

Example enumeration:

>>> class Color(Enum):
...     RED = 1
...     BLUE = 2
...     GREEN = 3

Access them by:

  • attribute access:

>>> Color.RED
<Color.RED: 1>
  • value lookup:

>>> Color(1)
<Color.RED: 1>
  • name lookup:

>>> Color['RED']
<Color.RED: 1>

Enumerations can be iterated over, and know how many members they have:

>>> len(Color)
3
>>> list(Color)
[<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]

Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.

VMS_AIS_CHECK = 'VMS_AIS_CHECK'[source]
UNAUTHORIZED_FISHING = 'UNAUTHORIZED_FISHING'[source]
CLOSED_AREA = 'CLOSED_AREA'[source]
property label[source]