From 4cd0428efe8edd71bc8d3696866f7d857551e1cb Mon Sep 17 00:00:00 2001 From: Minos Hemrich Date: Tue, 27 Feb 2024 14:17:23 +0100 Subject: [PATCH] remove types not used --- src/trafficgen/types.py | 140 ---------------------------------------- 1 file changed, 140 deletions(-) diff --git a/src/trafficgen/types.py b/src/trafficgen/types.py index d7a12e1..268480b 100644 --- a/src/trafficgen/types.py +++ b/src/trafficgen/types.py @@ -14,128 +14,6 @@ def to_camel(string: str) -> str: return words[0] + "".join(word.capitalize() for word in words[1:]) -# class Position(BaseModel): -# """Data type for a ship's position with attributes north, east in [m].""" - -# north: float = 0.0 -# east: float = 0.0 -# latitude: float = 0.0 -# longitude: float = 0.0 - - -# class Initial(BaseModel): -# """Data type for a (ship) initial data.""" - -# position: Position = Position() -# sog: float = 0.0 -# cog: float = 0.0 -# heading: float = 0.0 - - -# class Waypoint(BaseModel): -# """Data type for a (ship) waypoint.""" - -# position: Position = Position() -# sog: float = 0.0 -# heading: float = 0.0 - - -# class GeneralShipType(str, Enum): -# """Enumeration of ship types.""" - -# WING_IN_GROUND = "Wing in ground" -# FISHING = "Fishing" -# TOWING = "Towing" -# DREDGING_OR_UNDERWATER_OPS = "Dredging or underwater ops" -# DIVING_OPS = "Diving ops" -# MILITARY_OPS = "Military ops" -# SAILING = "Sailing" -# PLEASURE_CRAFT = "Pleasure Craft" -# HIGH_SPEED_CRAFT = "High speed craft" -# PILOT_VESSEL = "Pilot Vessel" -# SEARCH_AND_RESCUE_VESSEL = "Search and Rescue vessel" -# TUG = "Tug" -# PORT_TENDER = "Port Tender" -# ANTI_POLLUTION = "Anti-pollution" -# LAW_ENFORCEMENT = "Law Enforcement" -# MEDICAL_TRANSPORT = "Medical Transport" -# NONCOMBATANT_SHIP = "Noncombatant ship" -# PASSENGER = "Passenger" -# CARGO = "Cargo" -# TANKER = "Tanker" -# OTHER_TYPE = "Other Type" - - -# class AISNavStatus(str, Enum): -# """Enumeration of AIS navigation status types.""" - -# UNDER_WAY_USING_ENGINE = "Under way using engine" -# AT_ANCHOR = "At anchor" -# NOT_UNDER_COMMAND = "Not under command" -# RESTRICTED_MANOEUVERABILITY = "Restricted manoeuverability" -# CONSTRAINED_BY_HER_DRAUGHT = "Constrained by her draught" -# MOORED = "Moored" -# AGROUND = "Aground" -# ENGAGED_IN_FISHING = "Engaged in fishing" -# UNDER_WAY_SAILING = "Under way sailing" -# RESERVED_FOR_FUTURE_AMENDMENT_OF_NAVIGATIONAL_STATUS_FOR_HSC = ( -# "Reserved for future amendment of navigational status for HSC" -# ) -# RESERVED_FOR_FUTURE_AMENDMENT_OF_NAVIGATIONAL_STATUS_FOR_WIG = ( -# "Reserved for future amendment of navigational status for WIG" -# ) -# RESERVED_FOR_FUTURE_USE_1 = "Reserved for future use 1" -# RESERVED_FOR_FUTURE_USE_2 = "Reserved for future use 2" -# RESERVED_FOR_FUTURE_USE_3 = "Reserved for future use 3" -# AIS_SART_IS_ACTIVE = "AIS SART is active" -# NOT_DEFINED_DEFAULT = "Not defined (default)" - - -# class ShipStatic(BaseModel): -# """Static ship data that will not change during the scenario.""" - -# id: UUID -# length: float -# width: float -# height: float -# speed_max: float -# mmsi: Optional[int] = Field( -# None, -# ge=100000000, -# le=999999999, -# description="Maritime Mobile Service Identity (MMSI)", -# examples=[123456789], -# ) -# name: str -# ship_type: GeneralShipType - -# class Config: -# """For converting parameters written to file from snake to camel case.""" - -# alias_generator = to_camel -# populate_by_name = True - - -# class Ship(BaseModel): -# """Data type for a ship.""" - -# static: Union[ShipStatic, None] = None -# initial: Union[Initial, None] = None -# waypoints: Union[List[Waypoint], None] = None - - -# class OwnShip(Ship): -# """Data type for own ship.""" - -# pass - - -# class TargetShip(Ship): -# """Data type for a target ship.""" - -# pass - - class EncounterType(Enum): """Enumeration of encounter types.""" @@ -162,24 +40,6 @@ class Config: populate_by_name = True -# class TrafficSituation(BaseModel): -# """Data type for a traffic situation.""" - -# title: str -# input_file_name: Union[str, None] = None -# common_vector: float -# own_ship: Union[Ship, None] = None -# num_situations: Union[int, None] = None -# encounter: Union[List[Encounter], None] = None -# target_ships: Union[List[TargetShip], None] = None - -# class Config: -# """For converting parameters written to file from snake to camel case.""" - -# alias_generator = to_camel -# populate_by_name = True - - class EncounterClassification(BaseModel): """Data type for the encounter classification."""