165 lines
5.6 KiB
C#
165 lines
5.6 KiB
C#
|
|
using System.Collections.Generic;
|
|
|
|
namespace bsmd.AIS2Service
|
|
{
|
|
|
|
/// <summary>
|
|
/// Class contains static AIS lookup tables (not likely to change..)
|
|
/// </summary>
|
|
internal static class Lookup
|
|
{
|
|
|
|
#region Ship types
|
|
|
|
public static readonly Dictionary<int, string> ShipTypes = new Dictionary<int, string>
|
|
{
|
|
{0, "not available" },
|
|
{1, "reserved" },
|
|
{2, "reserved" },
|
|
{3, "reserved" },
|
|
{4, "reserved" },
|
|
{5, "reserved" },
|
|
{6, "reserved" },
|
|
{7, "reserved" },
|
|
{8, "reserved" },
|
|
{9, "reserved" },
|
|
{10, "reserved" },
|
|
{11, "reserved" },
|
|
{12, "reserved" },
|
|
{13, "reserved" },
|
|
{14, "reserved" },
|
|
{15, "reserved" },
|
|
{16, "reserved" },
|
|
{17, "reserved" },
|
|
{18, "reserved" },
|
|
{19, "reserved" },
|
|
{20, "WIG all types" },
|
|
{21, "WIG Hazardous category A" },
|
|
{22, "WIG Hazardous category B" },
|
|
{23, "WIG Hazardous category C" },
|
|
{24, "WIG Hazardous category D" },
|
|
{25, "WIG reserved" },
|
|
{26, "WIG reserved" },
|
|
{27, "WIG reserved" },
|
|
{28, "WIG reserved" },
|
|
{29, "WIG reserved" },
|
|
{30, "Fishing" },
|
|
{31, "Towing" },
|
|
{32, "Towing: Length>200m or Breadth>25m" },
|
|
{33, "Dredging or underwater ops" },
|
|
{34, "Diving ops" },
|
|
{35, "Military ops" },
|
|
{36, "Sailing" },
|
|
{37, "Pleasure craft" },
|
|
{38, "reserved" },
|
|
{39, "reserved" },
|
|
{40, "HSC, all types" },
|
|
{41, "HSC Hazardous category A" },
|
|
{42, "HSC Hazardous category B" },
|
|
{43, "HSC Hazardous category C" },
|
|
{44, "HSC Hazardous category D" },
|
|
{45, "HSC reserved" },
|
|
{46, "HSC reserved" },
|
|
{47, "HSC reserved" },
|
|
{48, "HSC reserved" },
|
|
{49, "HSC no additional info" },
|
|
{50, "Pilot" },
|
|
{51, "SAR" },
|
|
{52, "Tug" },
|
|
{53, "Port tender" },
|
|
{54, "Anti-pollution equipment" },
|
|
{55, "Law enforcement" },
|
|
{56, "Spare - local vessel" },
|
|
{57, "Spare - local vessel" },
|
|
{58, "Medical transport" },
|
|
{59, "Noncombatant ship acc. Res. No. 18" },
|
|
{60, "Passenger, all types" },
|
|
{61, "Passenger Hazardous category A" },
|
|
{62, "Passenger Hazardous category B" },
|
|
{63, "Passenger Hazardous category C" },
|
|
{64, "Passenger Hazardous category D" },
|
|
{65, "Passenger reserved" },
|
|
{66, "Passenger reserved" },
|
|
{67, "Passenger reserved" },
|
|
{68, "Passenger reserved" },
|
|
{69, "Passenger no additional info" },
|
|
{70, "Cargo, all types" },
|
|
{71, "Cargo Hazardous category A" },
|
|
{72, "Cargo Hazardous category B" },
|
|
{73, "Cargo Hazardous category C" },
|
|
{74, "Cargo Hazardous category D" },
|
|
{75, "Cargo reserved" },
|
|
{76, "Cargo reserved" },
|
|
{77, "Cargo reserved" },
|
|
{78, "Cargo reserved" },
|
|
{79, "Cargo no additional info" },
|
|
{80, "Tanker, all types" },
|
|
{81, "Tanker Hazardous category A" },
|
|
{82, "Tanker Hazardous category B" },
|
|
{83, "Tanker Hazardous category C" },
|
|
{84, "Tanker Hazardous category D" },
|
|
{85, "Tanker reserved" },
|
|
{86, "Tanker reserved" },
|
|
{87, "Tanker reserved" },
|
|
{88, "Tanker reserved" },
|
|
{89, "Tanker no additional info" },
|
|
{90, "Other type, all types" },
|
|
{91, "Other type Hazardous category A" },
|
|
{92, "Other type Hazardous category B" },
|
|
{93, "Other type Hazardous category C" },
|
|
{94, "Other type Hazardous category D" },
|
|
{95, "Other type reserved" },
|
|
{96, "Other type reserved" },
|
|
{97, "Other type reserved" },
|
|
{98, "Other type reserved" },
|
|
{99, "Other type no additional info" },
|
|
};
|
|
|
|
#endregion
|
|
|
|
#region Navigation status
|
|
|
|
public static readonly Dictionary<int, string> NavStatus = new Dictionary<int, string>
|
|
{
|
|
{0, "Under way using engine" },
|
|
{1, "At anchor" },
|
|
{2, "Not under command" },
|
|
{3, "Restricted manoeuverability" },
|
|
{4, "Constrained by her draught" },
|
|
{5, "Moored" },
|
|
{6, "Aground" },
|
|
{7, "Engaged in fishing" },
|
|
{8, "Under way sailing" },
|
|
{9, "Reserved for future amendment of Navigational Status for HSC" },
|
|
{10, "Reserved for future amendment of Navigational Status for WIG" },
|
|
{11, "Reserved for future use" },
|
|
{12, "Reserved for future use" },
|
|
{13, "Reserved for future use" },
|
|
{14, "AIS-SART is active" },
|
|
{15, "Not defined" }
|
|
};
|
|
|
|
|
|
#endregion
|
|
|
|
#region Type of device
|
|
|
|
public static readonly Dictionary<int, string> DeviceTypes = new Dictionary<int, string>
|
|
{
|
|
{0, "Undefined" },
|
|
{1, "GPS" },
|
|
{2, "GLONASS" },
|
|
{3, "Combined GPS/GLONASS" },
|
|
{4, "Loran-C" },
|
|
{5, "Chayka" },
|
|
{6, "Integrated navigation system" },
|
|
{7, "Surveyed" },
|
|
{8, "Galileo" }
|
|
};
|
|
|
|
#endregion
|
|
|
|
}
|
|
}
|