Skip to content

Commit

Permalink
remove types not used
Browse files Browse the repository at this point in the history
  • Loading branch information
minhemdnv committed Feb 27, 2024
1 parent 2f6b05d commit 4cd0428
Showing 1 changed file with 0 additions and 140 deletions.
140 changes: 0 additions & 140 deletions src/trafficgen/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""

Expand All @@ -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."""

Expand Down

0 comments on commit 4cd0428

Please sign in to comment.