Aufgabenblatt 4
This commit is contained in:
21
src/NamedBodyForcePair.java
Normal file
21
src/NamedBodyForcePair.java
Normal 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 "";
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user