Show / Hide Table of Contents

Class BaseRecord

Base object for all types of ARINC424 records

Inheritance
System.Object
BaseRecord
AirportHeliport_LocalizerGlideSlope
AirportMsa
AirportProcedureData
AirportRunway
CommonRecordFields
ControlledAirspace
GridMora
Header1
Header2
Heliport
HeliportMsa
HeliportSidStarApproach
NdbNavaid
PathPoint
RestrictiveAirspace
VhfNavaid
Implements
IBaseRecord
Namespace: FpAssistantCore.Arinc424.Records
Assembly: FpAssistantCoreScl.dll
Syntax
public class BaseRecord : object, IBaseRecord
Remarks

If a specific ARINC 424 record type can't be match then the record will remain a BaseRecord hence remaining in the collection of records

Constructors

View Source

BaseRecord(String)

Constructor for class BaseRecord

Declaration
public BaseRecord(string record)
Parameters
Type Name Description
System.String record

ARINC424 record read from navigation database file

Properties

View Source

Id

A unique key for the ARINC 424 record

Declaration
public Guid Id { get; }
Property Value
Type Description
Guid

Returns unique ID for the record

View Source

Record

Data record of ARINC 424 (ASCII)

Declaration
public string Record { get; }
Property Value
Type Description
System.String
View Source

Type

Derives the type of ARINC 424 record from the 132 character data line

Declaration
public Arinc424RecordObjectTypes Type { get; }
Property Value
Type Description
Arinc424RecordObjectTypes

Returns enum of the type of ARINC 424 record

Methods

View Source

GeoFenceWithin(GeoCoordinateBasic, LinearDistance)

Checks if a point within the ARINC424 record is within a circular geofence

Declaration
public virtual bool GeoFenceWithin(GeoCoordinateBasic searchCentrePoint, LinearDistance radius)
Parameters
Type Name Description
GeoCoordinateBasic searchCentrePoint

Coordinate of the centre point of circular geofence

LinearDistance radius

Distance from centre point to determine inside

Returns
Type Description
System.Boolean
Remarks

Different ARINC 424 record will override this method where needed. Example Airport (PA) has an override and uses the ARP coordinate for the radius distance check

View Source

GetFieldContents(List<FieldStructure>, String)

Get field value based on class name and position in field structure data

Declaration
protected string GetFieldContents(List<FieldStructure> fields, string propertyName)
Parameters
Type Name Description
List<FieldStructure> fields
System.String propertyName

Property name

Returns
Type Description
System.String

Returns the sub string of text contained in the simple ASCII record

Remarks

Start and end positions taken from field definitions

View Source

Humanize(String)

Alter a string to make it more readable; Humanize it

Declaration
public static string Humanize(string input)
Parameters
Type Name Description
System.String input

Text literal to be humanized

Returns
Type Description
System.String

Returns a string in a human readable form

Remarks

To make readable 1) Adds space before Digits 2) UnPascalCase 3)Adds space after keywords

View Source

IsContinuationRecord()

Declaration
public virtual bool IsContinuationRecord()
Returns
Type Description
System.Boolean
View Source

PropertyNameAndValues()

Obtains a list of property names and values

Declaration
public Dictionary<string, string> PropertyNameAndValues()
Returns
Type Description
Dictionary<System.String, System.String>
View Source

UpdateField(Int32, String)

Declaration
public void UpdateField(int position, string newText)
Parameters
Type Name Description
System.Int32 position
System.String newText
View Source

UpdateRecord(String)

Update this ARINC 424 record

Declaration
public bool UpdateRecord(string record)
Parameters
Type Name Description
System.String record

ARINC424 record read from navigation database file

Returns
Type Description
System.Boolean

Returns true if successful

View Source

UpdateThisProperty(String, String, List<FieldStructure>)

Updates property by name and value

Declaration
protected void UpdateThisProperty(string propertyName, string value, List<FieldStructure> fields)
Parameters
Type Name Description
System.String propertyName
System.String value
List<FieldStructure> fields

Implements

IBaseRecord
  • View Source
In This Article
  • Constructors
    • BaseRecord(String)
  • Properties
    • Id
    • Record
    • Type
  • Methods
    • GeoFenceWithin(GeoCoordinateBasic, LinearDistance)
    • GetFieldContents(List<FieldStructure>, String)
    • Humanize(String)
    • IsContinuationRecord()
    • PropertyNameAndValues()
    • UpdateField(Int32, String)
    • UpdateRecord(String)
    • UpdateThisProperty(String, String, List<FieldStructure>)
  • Implements
Back to top Copyright 2018-2024 CADology Limited