public synchronized ChassisDataMsg getData(int recordingtime) { try { TimsDataMsg raw = getRawData(recordingtime); if (raw != null) { ChassisDataMsg data = new ChassisDataMsg(raw); return data; } else { return null; } } catch (MsgException e) { System.out.println(e.toString()); return null; } }
public synchronized Scan2DDataMsg getData(int recordingtime) { try { TimsDataMsg raw = getRawData(recordingtime); if (raw != null) { Scan2DDataMsg data = new Scan2DDataMsg(raw); return (data); } else { return (null); } } catch (MsgException e) { System.out.println(e.toString()); return (null); } }