Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Simplify this example by not declaring BasicTask since that's empty
[simgrid.git] / examples / java / comm_time / MyTask.java
1 /*
2  * $Id$
3  *
4  * Copyright 2006,2007,2010 The SimGrid Team. All rights reserved. 
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of the license (GNU LGPL) which comes with this package. 
8  */
9
10 import simgrid.msg.*;
11
12 public class MyTask extends Task {
13         
14    private double timeVal;
15         
16    public MyTask(String name, double computeDuration, double messageSize) throws JniException, NativeException{
17       super(name,computeDuration,messageSize);
18    }
19         
20    public void setTime(double timeVal){
21       this.timeVal = timeVal;
22    }
23    
24    public double getTime() {
25       return this.timeVal;
26    }
27 }
28