Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
peersimgrid release 1.0
[simgrid.git] / contrib / psg / src / example / symphony / Handler.java
diff --git a/contrib/psg/src/example/symphony/Handler.java b/contrib/psg/src/example/symphony/Handler.java
new file mode 100644 (file)
index 0000000..c78d774
--- /dev/null
@@ -0,0 +1,19 @@
+package example.symphony;\r
+\r
+import peersim.core.Node;\r
+\r
+/**\r
+ *\r
+ * @author Andrea Esposito <and1989@gmail.com>\r
+ */\r
+public interface Handler {\r
+\r
+    /**\r
+     * Handler associable to a routing request\r
+     *\r
+     * @param src Symphony Protocol that has sent the routing request\r
+     * @param evt Tuple that contains: Node that manages the identifier, Identifier that the routing\r
+     * has done on\r
+     */\r
+    void handle(SymphonyProtocol src, Tuple<Node, Double> evt);\r
+}\r