StkFacilityDatabase Class |
Namespace: AGI.Foundation.Stk
The StkFacilityDatabase type exposes the following members.
| Name | Description | |
|---|---|---|
| StkFacilityDatabase | Initializes a new instance. |
| Name | Description | |
|---|---|---|
| LastUpdateDate |
Gets the last update date reported in the Generic Database (.gd) file, or MinValue
if the file does not exist or does not contain a LastUpdate field.
| |
| Version |
Gets the version number reported in the Generic Database (.gd) file, or "Unknown" if
the file does not exist or does not contain a Version field.
|
| 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.) | |
| GetCentralBodies |
Gets the central bodies of the facilities in the database.
| |
| GetEntries |
Gets all of the entries in the database.
| |
| GetEntries(StkFacilityDatabaseQuery) |
Gets all of the entries in the database matching a specified query.
| |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetNetworks |
Gets the networks of the facilities in the database.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| CreatePlatforms | Overloaded.
Creates a platform for each facility entry in the supplied database.
(Defined by StkFacilityDatabaseExtensions.) | |
| CreatePlatforms(StkFacilityDatabaseQuery) | Overloaded.
Creates platforms representing the facilities in the database that match the input query.
(Defined by StkFacilityDatabaseExtensions.) |
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); }