]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/net/dhv/DhvSummaryC.nc
Merge TinyOS 2.1.1 into master.
[tinyos-2.x.git] / tos / lib / net / dhv / DhvSummaryC.nc
diff --git a/tos/lib/net/dhv/DhvSummaryC.nc b/tos/lib/net/dhv/DhvSummaryC.nc
new file mode 100755 (executable)
index 0000000..0cece24
--- /dev/null
@@ -0,0 +1,32 @@
+/**
+ * DHV Summary Message Configuration.
+ *
+ * Define the interfaces and components.
+ *
+ * @author Thanh Dang
+ * @author Seungweon Park
+ *
+ * @modified 1/3/2009   Added meaningful documentation.
+ * @modified 8/28/2008  Defined DHV interfaces type.
+ * @modified 8/28/2008  Took the source code from DIP.
+ **/
+
+configuration DhvSummaryC {
+  provides interface DhvDecision;
+
+  uses interface DhvSend as SummarySend;
+  uses interface DhvReceive as SummaryReceive;
+       uses interface DhvStateLogic as StateLogic;
+  uses interface DhvHelp;
+}
+
+implementation {
+  components DhvSummaryP;
+  DhvDecision = DhvSummaryP;
+  SummarySend = DhvSummaryP;
+  SummaryReceive = DhvSummaryP;
+       StateLogic = DhvSummaryP;
+  DhvHelp = DhvSummaryP;
+  components RandomC;
+  DhvSummaryP.Random -> RandomC; 
+}