Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
b0ee82b7aa6d5abca60abe7c75f14eaf40755309
[simgrid.git] / doc / index.doc
1 /*! \page index Java Binding documentation home page
2
3 \section welcome Welcome to Simgrid-java documentation home page
4
5
6 Simgrid-java is a java API that let you use <a href="http://simgrid.gforge.inria.fr/">SimGrid</a> MSG API in your favorite language (java). Without it, you would be forced to use C or one of the other bindings provided. 
7
8 To make a long story short, it's a JNI binding, so it implies that :
9 \li Most of the MSG and SimGrid documentation about behavioral aspects applies directly to what you are programming. 
10 \li MSG data structures are mapped to Java objects. So it means that from the syntaxic point of view, you have to know how those objects are. Fortunately, we have generated the Javadoc for those objects. So take a look at it
11
12 Finally, it implies also that you program can crash for 3 main reasons  : 
13
14 \li Your Java part is not good : you'll have a good old java exception thrown, and hence you should be able to correct it by yourself.
15 \li Our java part is not good : you'll also have a java exception thrown, but we have real doubts this can happen, since the java part is only a JNI binding. The other option is that it crashed because you used incorrectly the MSG API, so this means also you should have a MSGException. It means you should read carefully MSG samples and/or documentation.
16 \li Something has crashed in the C part. Okay, here comes the tricky thing.
17
18 C crashes mainly for 2 reasons : 
19
20 \li When something goes wrong in your simulation, sometimes the C part stops because you used SimGrid incorrectly, and JNI bindings are not fond of that. It means that you'll have something that looks ugly, but you should be able to identify what's going wrong in your code by carefully reading the whole error message
21 \li It may happen that the problem comes directly from SimGrid : in this case, the error should be uglier. In that case, you may submit a bug directly to SimGrid.      
22
23  */