public static class ThirdBodyGravity.ThirdBodyInfo extends Object
Constructor and Description |
---|
ThirdBodyInfo(String name,
Point position,
double gravitationalParameter)
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Returns true if this object is equivalent to the given object.
|
double |
getGravitationalParameter()
Gets the gravitational parameter of the perturbing gravitational body,
in meters cubed per second squared.
|
String |
getName()
Gets the string identifying the name of the perturbing gravitational body.
|
Point |
getPosition()
Gets the
Point representing the position of the perturbing gravitational body. |
int |
hashCode()
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
|
public ThirdBodyInfo(@Nonnull String name, @Nonnull Point position, double gravitationalParameter)
name
- The name to identify the perturbing gravitational body.position
- The position of the perturbing gravitational body.gravitationalParameter
- The gravitational parameter of the body,
in meters cubed per second squared.@Nonnull public final String getName()
@Nonnull public final Point getPosition()
Point
representing the position of the perturbing gravitational body.public final double getGravitationalParameter()
public boolean equals(Object obj)
equals
in class Object
obj
- The object to test.Object.hashCode()
,
HashMap
public int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)