package unsw.blackout; import unsw.utils.Angle; // "This device acts like a desktop" // There is a small POTENTIAL issue where our satellites check the type of the device, and if our // device is supposed to act like a desktop, then the satellites should also be able to communicate // with our CloudStorageDevice if Desktops are compatible. This is unspecified! public class CloudStorageDevice extends DesktopDevice { public CloudStorageDevice(String deviceID, Angle position) { super(deviceID, position); } @ Override final protected int getNumBytesInFiles() { int count = 0; for (File file : getReceivedFiles()) { count += file.getContents().length(); } return count; } }