|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.algart.model3d.common.movement.model.Earth
public final class Earth extends java.lang.Object implements Item
Earth planet: an item which acts to any other item, which have a mass
,
by EarthGravitationRule
interaction.
It is supposed that Earth attracts any item with the force, directed downward and equal to
This class is not thread-safe, but is thread-compatible and can be synchronized manually if multithread access is necessary.
AlgART Laboratory 2010
Constructor and Description |
---|
Earth(double gravity)
Creates new Earth with the specified acceleration of gravity g=gravity. |
Modifier and Type | Method and Description |
---|---|
double |
getGravity()
Returns the acceleration of gravity g. |
void |
setGravity(double gravity)
Sets the acceleration of gravity g. |
java.lang.String |
toString()
Returns a brief string description of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Earth(double gravity)
gravity
- acceleration of gravity g.Method Detail |
---|
public double getGravity()
public void setGravity(double gravity)
gravity
- new acceleration of gravity g.public java.lang.String toString()
The result of this method may depend on implementation.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |