58 lines
1.4 KiB
Java
Executable File
58 lines
1.4 KiB
Java
Executable File
package uebung05.logistics.material;
|
|
|
|
import uebung05.logistics.quantities.IntUnit;
|
|
|
|
/**
|
|
* The RocketPods class represents a unit of measurement for 70mm rocket pods.
|
|
* It is a singleton class, meaning only one instance of the class can exist at a time.
|
|
*
|
|
* @author Nikolaus Köberlein
|
|
* @version 1.0
|
|
*/
|
|
public class RocketPods implements IntUnit {
|
|
|
|
public static RocketPods INSTANCE;
|
|
|
|
private RocketPods() {}
|
|
|
|
/**
|
|
* Get the singleton instance of the RocketPods class
|
|
*
|
|
* @return The singleton instance of the RocketPods class
|
|
*/
|
|
public static RocketPods getINSTANCE() {
|
|
if (INSTANCE == null) {
|
|
INSTANCE = new RocketPods();
|
|
}
|
|
return INSTANCE;
|
|
}
|
|
|
|
/**
|
|
* Get a string representation of the RocketPods object
|
|
*
|
|
* @return A string representation of the RocketPods object
|
|
*/
|
|
@Override
|
|
public String toString() {
|
|
return "pods of 70mm rockets";
|
|
}
|
|
|
|
/**
|
|
* Set the integer value of the RocketPods object
|
|
*
|
|
* @param value The integer value to set
|
|
*/
|
|
public void setValue(int value) {
|
|
// Implementation goes here
|
|
}
|
|
|
|
/**
|
|
* Get the integer value of the RocketPods object
|
|
*
|
|
* @return The integer value of the RocketPods object
|
|
*/
|
|
public int getValue() {
|
|
// Implementation goes here
|
|
return 0;
|
|
}
|
|
} |