Class StarCatalog
java.lang.Object
org.episteme.natural.physics.astronomy.StarCatalog
- All Implemented Interfaces:
MiniCatalog<Star>
Star catalog with Quantity-based astronomical data loaded from JSON.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilterBySpectralClass(char spectralClass) Filters stars by spectral class (O, B, A, F, G, K, M).filterByTemperature(double minKelvin, double maxKelvin) Filters stars by temperature range (for H-R diagram).findByName(String name) Finds an entry by name.findNearest(double maxDistanceLightYears) Finds stars within a distance range.getAll()Returns all entries in the catalog.static StarCatalogReturns the singleton instance.intsize()Returns the size of the catalog.
-
Constructor Details
-
StarCatalog
public StarCatalog()
-
-
Method Details
-
getInstance
Returns the singleton instance. -
getAll
Description copied from interface:MiniCatalogReturns all entries in the catalog.- Specified by:
getAllin interfaceMiniCatalog<Star>
-
findByName
Description copied from interface:MiniCatalogFinds an entry by name.- Specified by:
findByNamein interfaceMiniCatalog<Star>
-
size
public int size()Description copied from interface:MiniCatalogReturns the size of the catalog.- Specified by:
sizein interfaceMiniCatalog<Star>
-
filterBySpectralClass
-
findNearest
-
filterByTemperature
-