Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
added SMPI_DEP to configure.ac and src/Makefile.am
[simgrid.git] / examples / java / basic / BasicTask.java
1 /*
2  * $Id$
3  *
4  * Copyright 2006,2007 Martin Quinson, Malek Cherier         
5  * All rights reserved. 
6  *
7  * This program is free software; you can redistribute it and/or modify it
8  * under the terms of the license (GNU LGPL) which comes with this package. 
9  */
10
11 import simgrid.msg.*;
12
13 public class BasicTask extends Task {
14         
15     private int data;
16         
17     public BasicTask(String name, double computeDuration, double messageSize) throws JniException{
18         super(name,computeDuration,messageSize);                
19     }
20         
21     public BasicTask() {
22         this.data = 0;
23     }
24         
25     public void setData(int data){
26         this.data = data;
27     }
28         
29     public int getData() {
30         return this.data;
31     }
32 }