Пример #1
0
 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;
   }
 }
Пример #2
0
  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);
    }
  }