public ResultXmlParser(File f) {
try {
JAXBContext jc = JAXBContext.newInstance("org.mcisb.beacon.model");
Unmarshaller unmarshaller = jc.createUnmarshaller();
Result result = (Result)unmarshaller.unmarshal(f);
ResultTimeSeries timeSeries = result.getResultTimeSeries();
List<ResultState> resultStates = timeSeries.getResultState();
times = new double[resultStates.size()];
for (int i=0; i< resultStates.size(); i++) {
ResultState resultState = (ResultState) resultStates.get(i);
times[i]=resultState.getTimeStamp();