N-sim
Emulation and simulation of
Wireless Sensor Networks



   Home


   Project Page


   Download


   CVS



   Installation


   Configuration


   Plug-ins




 Hosted by
SourceForge.net Logo

Sensor_node Class Reference

#include <sensor_node.h>

Inheritance diagram for Sensor_node:

Environ_object Comparable< unsigned long > List of all members.

Public Member Functions

 Sensor_node (unsigned long)
 ~Sensor_node ()
void move ()
unsigned short is_moved ()
int launch ()
int pause ()
int unpause ()
int save ()
int restore ()

Public Attributes

AVL_tree< unsigned long > sensors

Friends

class Battery_sensor
class GPS_sensor

Detailed Description

Definition at line 78 of file sensor_node.h.


Constructor & Destructor Documentation

Sensor_node::Sensor_node unsigned  long  ) 
 

Definition at line 39 of file sensor_node.cpp.

References Environ_object::class_type, Node_mobility::cmps, Node_mobility::degrees, Node_block_dev::image_path, Node_powersource::mAH, MAX_NAME, MIN_SIZE, Environ_object::name, NodeClass, PATH_MAX, Node_radio::protocol, Environ_object::shape, and Node_block_dev::size_MB.

Sensor_node::~Sensor_node  ) 
 

Definition at line 60 of file sensor_node.cpp.

References AVL_tree< Key >::burn(), sensors, and Environ_object::shape.


Member Function Documentation

unsigned short Sensor_node::is_moved  ) 
 

Definition at line 102 of file sensor_node.h.

int Sensor_node::launch  ) 
 

Definition at line 39 of file sensor_node-l4.cpp.

void Sensor_node::move  ) 
 

Definition at line 101 of file sensor_node.h.

Referenced by Configuration::on_start_element().

int Sensor_node::pause  ) 
 

Definition at line 46 of file sensor_node-l4.cpp.

Referenced by checkpoint().

int Sensor_node::restore  ) 
 

Todo:
fill in parameters, os_type from node?

Definition at line 67 of file sensor_node-l4.cpp.

int Sensor_node::save  ) 
 

Todo:
fill in parameters

Definition at line 60 of file sensor_node-l4.cpp.

Referenced by checkpoint().

int Sensor_node::unpause  ) 
 

Definition at line 53 of file sensor_node-l4.cpp.

Referenced by checkpoint().


Friends And Related Function Documentation

friend class Battery_sensor [friend]
 

Definition at line 92 of file sensor_node.h.

friend class GPS_sensor [friend]
 

Definition at line 93 of file sensor_node.h.


Member Data Documentation

AVL_tree<unsigned long> Sensor_node::sensors
 

Definition at line 96 of file sensor_node.h.

Referenced by Configuration::on_start_element(), and ~Sensor_node().


The documentation for this class was generated from the following files:


© 2007, Los Alamos National Security, LLC.