コード例 #1
0
 @Override
 protected void run() throws IOException, NoSuchTraceException {
   MovementTrace movement =
       (MovementTrace) _store.getTrace(graph_options.get(GraphOptions.MOVEMENT));
   long otps = movement.ticsPerSecond();
   long interval = Math.max((long) (d_interval * otps), 1);
   if (maxTime != null) maxTime *= otps;
   double timeMul = getTimeMul(otps, dtps);
   if (ext_fmt.is(ExternalFormat.NS2)) NS2Movement.toNS2(movement, _out, timeMul);
   else ONEMovement.toONE(movement, _out, timeMul, interval, maxTime);
 }