Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages

RadioState Class Reference
[utils - utiltity classesblackboard - blackboard related stuff]

Class to hold the channel state of a certain radio of a nic. More...

#include <RadioState.h>

Inherits BBItem.

Inheritance diagram for RadioState:

Inheritance graph
[legend]
Collaboration diagram for RadioState:

Collaboration graph
[legend]
List of all members.

Public Types

enum  States {
  SLEEP, RECV, SEND, SWITCH_TO_SLEEP,
  SWITCH_TO_RECV, SWITCH_TO_SEND
}
 possible states of this channel of the radio

Public Member Functions

States getState () const
 function to get the state
void setState (States s)
 set the state of the radio
 RadioState (States s=RECV)
 Constructor.
std::string info () const
 Enables inspection.

Protected Attributes

States state
 holds the state for this channel

Private Member Functions

 BBITEM_METAINFO (BBItem)

Detailed Description

Class to hold the channel state of a certain radio of a nic.

SLEEP: the radio is sleeping SWITCH_TO_RECV: RECV: the radio is able to receive a message SWITCH_TO_SEND: SEND: the radio is sending a message

Author:
Andreas Köpke
See also:
Blackboard


The documentation for this class was generated from the following file:
Generated on Fri Jan 12 08:30:14 2007 for Mobility Framework by  doxygen 1.4.4