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
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
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 |
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
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 overide this method where needed. Example Airport (PA) has an overide 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
IsContinuationRecord()
Declaration
public virtual bool IsContinuationRecord()
Returns
Type | Description |
---|---|
System.Boolean |
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 |