22 lines
662 B
Java
22 lines
662 B
Java
// A body with a name and an associated force. The leaf node of
|
|
// a hierarchical cosmic system. This class implements 'CosmicSystem'.
|
|
//
|
|
public class NamedBodyForcePair /* TODO: add clause */ {
|
|
|
|
// TODO: define missing parts of this class.
|
|
|
|
// Initializes this with name, mass, current position and movement. The associated force
|
|
// is initialized with a zero vector.
|
|
public NamedBodyForcePair(String name, double mass, Vector3 massCenter, Vector3 currentMovement) {
|
|
// TODO: implement constructor.
|
|
|
|
}
|
|
|
|
// Returns the name of the body.
|
|
public String getName() {
|
|
// TODO: implement method.
|
|
return "";
|
|
|
|
}
|
|
}
|