@Test public void idleHostReturnsFalseWhenHostIsBusy() { assertFalse(new ServerLoad(0.5, 0.6, 0.7).isIdle()); }
public boolean isIdle() { return cpuLoad < 0.05 && ramLoad < 0.05 && diskLoad < 0.05; }
ServerLoad { public boolean isIdle() { return cpuLoad < 0.05 && ramLoad < 0.05 && diskLoad < 0.05; } }
ServerLoad { public boolean isIdle() { return cpuLoad < 0.05 && ramLoad < 0.05 && diskLoad < 0.05; } ServerLoad(double cpuLoad, double ramLoad, double diskLoad); }
ServerLoad { public boolean isIdle() { return cpuLoad < 0.05 && ramLoad < 0.05 && diskLoad < 0.05; } ServerLoad(double cpuLoad, double ramLoad, double diskLoad); double getTotalOverload(); double getCpuLoad(); double getRamLoad(); double getDiskLoad(); double getUnusedCpuPerc(); double getUnusedRamPerc(); double getUnusedDiskPerc(); @Override String toString(); boolean isIdle(); }
ServerLoad { public boolean isIdle() { return cpuLoad < 0.05 && ramLoad < 0.05 && diskLoad < 0.05; } ServerLoad(double cpuLoad, double ramLoad, double diskLoad); double getTotalOverload(); double getCpuLoad(); double getRamLoad(); double getDiskLoad(); double getUnusedCpuPerc(); double getUnusedRamPerc(); double getUnusedDiskPerc(); @Override String toString(); boolean isIdle();  }