Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Dig through git history, and update copyright lines.
[simgrid.git] / examples / java / pingPong / PingPongTask.java
1 /*
2  * Copyright (c) 2006-2013. The SimGrid Team.
3  * All rights reserved.
4  *
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. 
7  */
8
9 package pingPong;
10 import org.simgrid.msg.NativeException;
11 import org.simgrid.msg.Task;
12
13 public class PingPongTask extends Task {
14    
15    private double timeVal;
16    
17    public PingPongTask() throws NativeException {
18       this.timeVal = 0;
19    }
20    
21    public PingPongTask(String name, double computeDuration, double messageSize) throws NativeException {      
22       super(name,computeDuration,messageSize);          
23    }
24    
25    public void setTime(double timeVal){
26       this.timeVal = timeVal;
27    }
28    
29    public double getTime() {
30       return this.timeVal;
31    }
32 }
33