Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Création du dépôt AIL-PA
[ail-pa.git] / src / and / AIL / MessageTabDouble.java
1 package and.AIL ;
2
3 /**
4  * Class which contains the Object of the message (integer, double, tabular...)
5  * and the tag associated to this message.
6  * @author Sébastien Miquée
7  * @version 3.0
8  */
9 public class MessageTabDouble extends Message
10 {
11         /**
12          * 
13          */
14         private static final long serialVersionUID = 1L;
15         /** Local variables **/
16         private double[] tabd ; 
17
18         /**
19          * Empty constructor for the Stub generation.
20          */
21         public MessageTabDouble() {}
22         
23         /**
24          * Constructor.
25          * For Message which contains a Double.
26          * @param _tag : tag of the Message.
27          * @param _o : the tabular of Doubles.
28          */
29         public MessageTabDouble( int _id, int _tag, double[] _o )
30         {
31                 super() ;
32                 sender = (short)_id ;
33                 tag = (short)_tag ;
34                 tabd = _o ;
35                 type = 3 ;
36         }
37         
38         public MessageTabDouble( int _tag, double[] _o )
39         {
40                 super() ;
41                 sender = -1 ;
42                 tag = (short)_tag ;
43                 tabd = _o ;
44                 type = 3 ;
45         }
46
47         /**
48          * Returns the tabular of doubles.
49          * @return : the integer value of the Message.
50          */
51         public double[] getTabDouble() 
52         {
53                 return tabd ;
54         }
55 }       
56
57 /** La programmation est un art, respectons ceux qui la pratiquent !! **/