Class BaseRecord
Base object for all types of ARINC424 records
Inheritance
Implements
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 SourceBaseRecord(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 SourceId
A unique key for the ARINC 424 record
Declaration
public Guid Id { get; }
Property Value
Type | Description |
---|---|
Guid | Returns unique ID for the record |
Record
Data record of ARINC 424 (ASCII)
Declaration
public string Record { get; }
Property Value
Type | Description |
---|---|
System.String |
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 SourceGeoFenceWithin(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
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
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
IsContinuationRecord()
Declaration
public virtual bool IsContinuationRecord()
Returns
Type | Description |
---|---|
System.Boolean |
PropertyNameAndValues()
Obtains a list of property names and values
Declaration
public Dictionary<string, string> PropertyNameAndValues()
Returns
Type | Description |
---|---|
Dictionary<System.String, System.String> |
UpdateField(Int32, String)
Declaration
public void UpdateField(int position, string newText)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | position | |
System.String | newText |
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 |
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 |