Class CelestialBody
java.lang.Object
org.episteme.natural.physics.classical.mechanics.Particle
org.episteme.natural.physics.astronomy.CelestialBody
- All Implemented Interfaces:
SpatialOctree.SpatialObject, Identified<Identification>, Named
- Direct Known Subclasses:
ArtificialSatellite, Planet, RingSystem, Star
Represents a celestial body (Star, Planet, Moon, etc.).
Extends Particle for kinematic simulation.
Modernized to Episteme.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(CelestialBody child) getId()Returns the unique identifier of this entity.getName()Surface gravity: g = GM/r²getTexture(String type) voidvoidsetParent(CelestialBody parent) voidvoidsetRotationPeriod(Quantity<Time> rotationPeriod) voidsetTexture(String type, String path) voidsetTexturePath(String texturePath) toString()Methods inherited from class Particle
distanceTo, getAcceleration, getMass, getMassValue, getPosition, getVelocity, getX, getY, getZ, kineticEnergy, setAcceleration, setAcceleration, setAcceleration, setPosition, setPosition, setVelocity, setVelocity, setVelocity, updatePosition, updateVelocity
-
Constructor Details
-
CelestialBody
-
-
Method Details
-
getName
-
getId
Description copied from interface:IdentifiedReturns the unique identifier of this entity.- Specified by:
getIdin interfaceIdentified<Identification>- Returns:
- the identifier
-
setName
-
getRadius
-
setRadius
-
getRotationPeriod
-
setRotationPeriod
-
getTexturePath
-
setTexturePath
-
getTexture
-
setTexture
-
getTextures
-
getParent
-
setParent
-
getChildren
-
addChild
-
getSurfaceGravity
Surface gravity: g = GM/r² -
getSurfaceGravitySafe
-
toString
-