Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
useless cosmetics hinted by qtcreator
[simgrid.git] / examples / java / trace / pingpong / PingPongTask.java
1 /* Copyright (c) 2006-2019. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 package trace.pingpong;
8 import org.simgrid.msg.Task;
9
10 public class PingPongTask extends Task {
11   private double timeVal;
12
13   public PingPongTask() {
14     this.timeVal = 0;
15   }
16
17   public PingPongTask(String name, double computeDuration, double messageSize) {
18     super(name,computeDuration,messageSize);
19   }
20
21   public void setTime(double timeVal){
22     this.timeVal = timeVal;
23   }
24
25   public double getTime() {
26     return this.timeVal;
27   }
28 }
29