Logo AND Algorithmique Numérique Distribuée

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