diff options
| author | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2025-02-13 18:00:17 +1100 |
|---|---|---|
| committer | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2025-02-13 18:00:17 +1100 |
| commit | 98cef5e9a772602d42acfcf233838c760424db9a (patch) | |
| tree | 5277fa1d7cc0a69a0f166fcbf10fd320f345f049 /comp2511/blackout/StandardSatellite.java | |
initial commit
Diffstat (limited to 'comp2511/blackout/StandardSatellite.java')
| -rw-r--r-- | comp2511/blackout/StandardSatellite.java | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/comp2511/blackout/StandardSatellite.java b/comp2511/blackout/StandardSatellite.java new file mode 100644 index 0000000..10777b3 --- /dev/null +++ b/comp2511/blackout/StandardSatellite.java @@ -0,0 +1,46 @@ +package unsw.blackout; + +import java.util.Optional; + +import unsw.utils.Angle; + +public class StandardSatellite extends SatelliteBase { + public StandardSatellite(String satelliteID, double height, Angle position) { + super(satelliteID, height, position); + } + + @ Override + final public double getVelocity() { + return 2_500.0; + } + @ Override + final public double getRange() { + return 150_000.0; + } + @ Override + final protected boolean isSupportedDeviceType(String type) { + if (type.equals(LaptopDevice.class.getSimpleName())) { + return true; + } else if (type.equals(HandheldDevice.class.getSimpleName())) { + return true; + } + return false; + } + @ Override + final protected Optional<Integer> getFileStoreLimit() { + return Optional.of(3); // Max of 3 files. + } + @ Override + final protected Optional<Integer> getByteStoreLimit() { + return Optional.of(80); // Max of 80 bytes. + } + @ Override + final protected Optional<Integer> getByteDownloadSpeed() { + return Optional.of(1); // 1 byte per minute. + } + @ Override + final protected Optional<Integer> getByteUploadSpeed() { + return Optional.of(1); // 1 byte per minute. + } +} + |
