コード例 #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);
    }
  }