#include <mac.h>
#include <radio.h>
#include <packet.h>
+#include <hashtable.h>
typedef struct variable_string {
char* type;
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 {
void addChannel(char* channel, FILE* file);
bool removeChannel(char* channel, FILE* file);
+ void randomSeed(int seed);
bool runNextEvent();