Aufgabenblatt 4

This commit is contained in:
Anton Ertl
2022-04-25 12:04:51 +02:00
parent 324626f5eb
commit ef01f2a0fc
7 changed files with 469 additions and 0 deletions

View File

@ -0,0 +1,21 @@
// 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 "";
}
}