Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
peersimgrid release 1.0
[simgrid.git] / contrib / psg / src / psgsim / Sizable.java
diff --git a/contrib/psg/src/psgsim/Sizable.java b/contrib/psg/src/psgsim/Sizable.java
new file mode 100644 (file)
index 0000000..16196f6
--- /dev/null
@@ -0,0 +1,18 @@
+package psgsim;
+
+/**
+ * An interface which defines a size for the message or the event to be sent. If you
+ * wish that your message has a size, your class message must implements this
+ * interface and defines a size parameter in the constructor.
+ * 
+ * @author Khaled Baati 05/02/2015
+ * @version 1.1
+ * 
+ */
+public interface Sizable {
+       /**
+        * 
+        * @return The size of the message
+        */
+       public double getSize();
+}