]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/tossim/tossim.h
Add functionality for CPM noise modeling.
[tinyos-2.x.git] / tos / lib / tossim / tossim.h
index 11628cb6ee8a08a954ca756f3b4ab71430fe3571..970d2af649381f2f1fd2af00a3fed9ffce6a2c14 100644 (file)
@@ -40,6 +40,7 @@
 #include <mac.h>
 #include <radio.h>
 #include <packet.h>
+#include <hashtable.h>
 
 typedef struct variable_string {
   char* type;
@@ -91,11 +92,16 @@ class Mote {
   void turnOn();
   void setID(unsigned long id);  
 
+  void addNoiseTraceReading(int val);
+  void createNoiseModel();
+  int generateNoise(int when);
+  
   Variable* getVariable(char* name);
   
  private:
   unsigned long nodeID;
   nesc_app_t* app;
+  struct hashtable* varTable;
 };
 
 class Tossim {
@@ -116,6 +122,7 @@ class Tossim {
 
   void addChannel(char* channel, FILE* file);
   bool removeChannel(char* channel, FILE* file);
+  void randomSeed(int seed);
   
   bool runNextEvent();