Click or drag to resize

StkFacilityDatabaseQuery Class

A query to be run against a StkFacilityDatabase.
Inheritance Hierarchy
SystemObject
  AGI.Foundation.StkStkFacilityDatabaseQuery

Namespace:  AGI.Foundation.Stk
Assembly:  AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public class StkFacilityDatabaseQuery

The StkFacilityDatabaseQuery type exposes the following members.

Constructors
  NameDescription
Public methodStkFacilityDatabaseQuery
Initializes a new instance of the StkFacilityDatabaseQuery class
Top
Properties
  NameDescription
Public propertyCentralBodyName
Gets or sets a regular expression that the CentralBodyName must match in order to be included in the query.
Public propertyFacilityName
Gets or sets a regular expression that the FacilityName must match in order to be included in the query.
Public propertyMaximumAltitude
Gets or sets the maximum value of Altitude in meters that is allowed in order for the entry to be included in the query.
Public propertyMaximumLatitude
Gets or sets the maximum value of Latitude in radians that is allowed in order for the entry to be included in the query.
Public propertyMaximumLongitude
Gets or sets the maximum value of Longitude in radians that is allowed in order for the entry to be included in the query.
Public propertyMinimumAltitude
Gets or sets the minimum value of Altitude in meters that is allowed in order for the entry to be included in the query.
Public propertyMinimumLatitude
Gets or sets the minimum value of Latitude in radians that is allowed in order for the entry to be included in the query.
Public propertyMinimumLongitude
Gets or sets the minimum value of Longitude in radians that is allowed in order for the entry to be included in the query.
Public propertyNetworkName
Gets or sets a regular expression that the NetworkName must match in order to be included in the query.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodMatches
Determines if an entry matches this query.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Examples

The following example shows how to query the facility database for facilities matching certain criteria:

C#
StkFacilityDatabase db = new StkFacilityDatabase(dbDirectory, "stkFacility");

// Create a query object and then populate it with the properties to query on.
// Regular expressions are used to query on strings.
StkFacilityDatabaseQuery query = new StkFacilityDatabaseQuery
{
    FacilityName = new Regex("^Diyarbak"),
};

// Get the database entries matching the query and print out the Longitude and Latitude of each.
foreach (StkFacilityDatabaseEntry entry in db.GetEntries(query))
{
    Console.WriteLine("{0}: Longitude {1}, Latitude {2}", entry.FacilityName, entry.Longitude, entry.Latitude);
}
See Also