|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSpaceObject
This class represents a space object i.e. a planet, moon or asteroid. Contains initial position, velocity and mass and a bunch other usefull parameters which I might need to either store or access during the project.
Constructor Summary | |
SpaceObject(PointN i,
double m)
Constructs a SolarObject which will hold inital and current information about
this object. |
Method Summary | |
PointN |
getC()
Method for accessing the current coordinates of this space object. |
boolean |
getDisplay()
Method for accessing the boolean variable display. |
PointN |
getI()
Method for accessing the initial conditions of this space object. |
double |
getM()
Method for accessing the mass of this space object. |
int |
getTime()
Method to get the number of calculated time steps so far. |
void |
plusOneTime()
Method for increasing the stored time steps by one time step. |
void |
setC(PointN c)
Method for updating the current coordinates of this space object. |
void |
setDisplay(boolean b)
Method for setting the boolean variable display. |
void |
setM(double m)
Method for updating the mass of this space object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SpaceObject(PointN i, double m)
SolarObject
which will hold inital and current information about
this object.
i
- the initial conditions. i.e. Positions and velocities in cartesian coordinates.m
- the mass of the object.Method Detail |
public boolean getDisplay()
boolean
representing the status of the display boolean in this object.public void setDisplay(boolean b)
b
- boolean
representing the status of the display boolean in this object.public PointN getI()
PointN
holding the initial conditions of this object.public PointN getC()
PointN
holding the current coordinates and velocities.public double getM()
double
.public void setM(double m)
m
- double
the new mass of the space object.public void setC(PointN c)
c
- PointN
holding the current coordinates and velocities.public void plusOneTime()
public int getTime()
int
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |