public class StkSatelliteDatabaseQuery extends Object
StkSatelliteDatabase
.
The following example shows how to query the satellite database for satellites matching certain criteria:
StkSatelliteDatabase db = new StkSatelliteDatabase(dbDirectory, "stkSatDb");
// Create a query object and then populate it with the properties to query on.
// Regular expressions are used to query on strings.
StkSatelliteDatabaseQuery query = new StkSatelliteDatabaseQuery();
query.setCommonName(Pattern.compile("QUICK"));
query.setMinimumApogee(200000.0);
// Get the database entries matching the query and print out the SSC number of each.
for (StkSatelliteDatabaseEntry entry : db.getEntries(query)) {
System.out.println(entry.getSatelliteNumber());
}
Constructor and Description |
---|
StkSatelliteDatabaseQuery() |
public final Pattern getSatelliteNumber()
public final void setSatelliteNumber(Pattern value)
public final Pattern getCommonName()
public final void setCommonName(Pattern value)
public final Pattern getOfficialName()
public final void setOfficialName(Pattern value)
public final Pattern getInternationalDesignator()
public final void setInternationalDesignator(Pattern value)
public final Pattern getOwner()
public final void setOwner(Pattern value)
public final Pattern getMission()
public final void setMission(Pattern value)
public final boolean matches(@Nonnull StkSatelliteDatabaseEntry entry)
entry
- The entry to check.true
if the entry matches this query; otherwise false
.ArgumentNullException
- Thrown when entry
is null
.