|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jimmc.spelsim.Planet
public class Planet
A representation of a planet.
Constructor Summary | |
---|---|
Planet()
Create a planet object. |
Method Summary | |
---|---|
void |
draw(java.awt.Graphics2D g,
double scale)
Draw our planet at the specified scale, and time. |
DVector |
getBase()
Get the position of the base station. |
DVector |
getBase(double simOffset)
Get a future position of the base station. |
double |
getBaseTheta()
Get the theta coordiate of the base station. |
DVector |
getBaseVelocity()
Get the current velocity of the base station. |
DVector |
getBaseVelocity(double simOffset)
Get a future velocity of the base station. |
double |
getDensity()
Get the density of the planet based on its radius and mass. |
double |
getGravity()
Get the surface gravity of the planet. |
DVector |
getGroundVelocity(DVector g)
Get the velocity of the surface of the planet at the given point. |
double |
getMass()
Get the mass of the planet. |
double |
getPeriod()
Get the rotation period of the planet. |
static Planet |
getPlanet(java.lang.String name)
Get a planet with preset values. |
static java.lang.String[] |
getPlanetNames()
Get the list of known planet names. |
double |
getPrimeAngle()
Get the current rotation angle of the prime meridian. |
double |
getRadius()
Get the radius of the planet. |
double |
getSynchronousAltitude()
Get the altitude of synchronous orbit. |
protected void |
resetSimulation()
Reset the simulation. |
void |
setMass(double mass)
Set the mass of the planet. |
void |
setPeriod(double period)
Set the rotation period of the planet. |
void |
setRadius(double radius)
Set the radius of the planet. |
protected void |
simulateOneStep(double simInterval)
Simulate a time change of the specified amount. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Planet()
Method Detail |
---|
public static Planet getPlanet(java.lang.String name)
public static java.lang.String[] getPlanetNames()
public void setMass(double mass)
mass
- The mass of the planet in kg.public double getMass()
public void setRadius(double radius)
radius
- The radius of the planet in meters.public double getRadius()
public void setPeriod(double period)
period
- The rotation period of the planet
in meters per second-squared.public double getPeriod()
public double getGravity()
public double getDensity()
public double getSynchronousAltitude()
public double getPrimeAngle()
protected void resetSimulation()
protected void simulateOneStep(double simInterval)
public DVector getBase()
public DVector getBase(double simOffset)
public DVector getBaseVelocity()
public DVector getBaseVelocity(double simOffset)
public DVector getGroundVelocity(DVector g)
public double getBaseTheta()
public void draw(java.awt.Graphics2D g, double scale)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |