Refactor for AB4

This commit is contained in:
2022-04-27 19:00:45 +02:00
parent 60ea5aa6f4
commit cf188f1b2d
10 changed files with 159 additions and 211 deletions

@ -1,21 +1,28 @@
// A body with a name and an associated force. The leaf node of
// a hierarchical cosmic system. This class implements 'CosmicSystem'.
//
/**
* 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.
/**
* 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 NamedBodyForcePair(NamedBodyForcePair other) {
// TODO
}
/**
* Returns the name of the body.
*/
public String getName() {
// TODO: implement method.
return "";
}
}