Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Création du dépôt AIL-PA
[ail-pa.git] / src / and / AIL / Message.java
1 package and.AIL ;
2
3 import java.io.Serializable;
4
5 /**
6  * Class which contains the Object of the message (integer, double, tabular...)
7  * and the tag associated to this message.
8  * @author Sébastien Miquée
9  * @version 3.0
10  */
11 public abstract class Message implements Serializable
12 {
13         /**
14          * 
15          */
16         private static final long serialVersionUID = 1L;
17
18         protected short tag ;
19         
20         protected short sender ;
21         
22         protected short type ;
23
24         /*************/
25         /** Getters **/
26         /*************/
27         
28         /**
29          * Return the tag of the message.
30          * @return the tag of the message
31          */
32         public int getTag() { return tag ; }
33         
34         public int getSender() { return sender ; }
35         
36         public int getType() { return type ; }
37 }       
38
39 /** La programmation est un art, respectons ceux qui la pratiquent !! **/