StkFacilityDatabaseQuery Class |
Namespace: AGI.Foundation.Stk
The StkFacilityDatabaseQuery type exposes the following members.
Name | Description | |
---|---|---|
StkFacilityDatabaseQuery | Initializes a new instance of the StkFacilityDatabaseQuery class |
Name | Description | |
---|---|---|
CentralBodyName |
Gets or sets a regular expression that the CentralBodyName
must match in order to be included in the query.
| |
FacilityName |
Gets or sets a regular expression that the FacilityName
must match in order to be included in the query.
| |
MaximumAltitude |
Gets or sets the maximum value of Altitude in meters that
is allowed in order for the entry to be included in the query.
| |
MaximumLatitude |
Gets or sets the maximum value of Latitude in radians that
is allowed in order for the entry to be included in the query.
| |
MaximumLongitude |
Gets or sets the maximum value of Longitude in radians that
is allowed in order for the entry to be included in the query.
| |
MinimumAltitude |
Gets or sets the minimum value of Altitude in meters that
is allowed in order for the entry to be included in the query.
| |
MinimumLatitude |
Gets or sets the minimum value of Latitude in radians that
is allowed in order for the entry to be included in the query.
| |
MinimumLongitude |
Gets or sets the minimum value of Longitude in radians that
is allowed in order for the entry to be included in the query.
| |
NetworkName |
Gets or sets a regular expression that the NetworkName
must match in order to be included in the query.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Matches |
Determines if an entry matches this query.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
The following example shows how to query the facility database for facilities matching certain criteria:
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); }