@Test public void testGetReading() { assertEquals(sd.getReading(SolarVar.DNI), sd.dni); assertEquals(sd.getReading(SolarVar.GHI), sd.ghi); }
public Reading getReading(SolarVar whichVariable) { switch (whichVariable) { case DNI: return this.dni; case GHI: return this.ghi; default: return null; } }
SolarData { public Reading getReading(SolarVar whichVariable) { switch (whichVariable) { case DNI: return this.dni; case GHI: return this.ghi; default: return null; } } }
SolarData { public Reading getReading(SolarVar whichVariable) { switch (whichVariable) { case DNI: return this.dni; case GHI: return this.ghi; default: return null; } } SolarData(String[] data);  SolarData(LocalDateTime dt, String[] data); }
SolarData { public Reading getReading(SolarVar whichVariable) { switch (whichVariable) { case DNI: return this.dni; case GHI: return this.ghi; default: return null; } } SolarData(String[] data);  SolarData(LocalDateTime dt, String[] data); boolean checkParsable(String str); Reading getReading(SolarVar whichVariable); String[] combineValues(); }
SolarData { public Reading getReading(SolarVar whichVariable) { switch (whichVariable) { case DNI: return this.dni; case GHI: return this.ghi; default: return null; } } SolarData(String[] data);  SolarData(LocalDateTime dt, String[] data); boolean checkParsable(String str); Reading getReading(SolarVar whichVariable); String[] combineValues();  }