2 * Copyright (c) 2006-2013. The SimGrid Team.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the license (GNU LGPL) which comes with this package.
10 import org.simgrid.msg.NativeException;
11 import org.simgrid.msg.Task;
13 public class PingPongTask extends Task {
15 private double timeVal;
17 public PingPongTask() throws NativeException {
21 public PingPongTask(String name, double computeDuration, double messageSize) throws NativeException {
22 super(name,computeDuration,messageSize);
25 public void setTime(double timeVal){
26 this.timeVal = timeVal;
29 public double getTime() {