|
Public Member Functions |
| SMAC (void) |
| ~SMAC () |
void | recv (Packet *p, Handler *h) |
Protected Member Functions |
void | handleGeneTimer () |
void | handleRecvTimer () |
void | handleSendTimer () |
void | handleNavTimer () |
void | handleNeighNavTimer () |
void | handleCsTimer () |
void | handleCounterTimer (int i) |
int | command (int argc, const char *const *argv) |
virtual int | initialized () |
Protected Attributes |
double | slotTime_ |
double | slotTime_sec_ |
double | difs_ |
double | sifs_ |
double | eifs_ |
double | guardTime_ |
double | byte_tx_time_ |
double | dutyCycle_ |
Private Member Functions |
void | setMySched (Packet *syncpkt) |
void | sleep () |
void | wakeup () |
void | rxMsgDone (Packet *p) |
void | handleRTS (Packet *p) |
void | handleCTS (Packet *p) |
void | handleDATA (Packet *p) |
void | handleACK (Packet *p) |
void | handleSYNC (Packet *p) |
int | checkToSend () |
bool | chkRadio () |
void | transmit (Packet *p) |
bool | sendMsg (Packet *p, Handler *h) |
bool | bcastMsg (Packet *p) |
bool | unicastMsg (int n, Packet *p) |
void | txMsgDone () |
int | startBcast () |
int | startUcast () |
bool | sendRTS () |
bool | sendCTS (double duration) |
bool | sendDATA () |
bool | sendACK (double duration) |
bool | sendSYNC () |
void | sentRTS (Packet *p) |
void | sentCTS (Packet *p) |
void | sentDATA (Packet *p) |
void | sentACK (Packet *p) |
void | sentSYNC (Packet *p) |
void | collision (Packet *p) |
void | capture (Packet *p) |
double | txtime (Packet *p) |
void | updateNav (double duration) |
void | updateNeighNav (double duration) |
void | mac_log (Packet *p) |
void | discard (Packet *p, const char *why) |
int | drop_RTS (Packet *p, const char *why) |
int | drop_CTS (Packet *p, const char *why) |
int | drop_DATA (Packet *p, const char *why) |
int | drop_SYNC (Packet *p, const char *why) |
int | hdr_dst (char *hdr, int dst=-2) |
int | hdr_src (char *hdr, int src=-2) |
int | hdr_type (char *hdr, u_int16_t type=0) |
Private Attributes |
NsObject * | logtarget_ |
int | state_ |
int | radioState_ |
int | tx_active_ |
int | mac_collision_ |
int | sendAddr_ |
int | recvAddr_ |
double | nav_ |
double | neighNav_ |
SmacNavTimer | mhNav_ |
SmacNeighNavTimer | mhNeighNav_ |
SmacSendTimer | mhSend_ |
SmacRecvTimer | mhRecv_ |
SmacGeneTimer | mhGene_ |
SmacCsTimer | mhCS_ |
SmacCounterTimer * | mhCounter_ [SMAC_MAX_NUM_SCHEDULES] |
int | numRetry_ |
int | numExtend_ |
int | lastRxFrag_ |
int | howToSend_ |
double | durSyncPkt_ |
double | durDataPkt_ |
double | durCtrlPkt_ |
double | timeWaitCtrl_ |
SchedTable | schedTab_ [SMAC_MAX_NUM_SCHEDULES] |
NeighbList | neighbList_ [SMAC_MAX_NUM_NEIGHBORS] |
int | mySyncNode_ |
int | currSched_ |
int | numSched_ |
int | numNeighb_ |
int | numBcast_ |
Packet * | dataPkt_ |
Packet * | pktRx_ |
Packet * | pktTx_ |
int | txData_ |
int | syncFlag_ |
int | selfConfigFlag_ |
double | startTime_ |
double | syncTime_ |
double | dataTime_ |
double | listenTime_ |
double | sleepTime_ |
double | cycleTime_ |
int | searchNeighb_ |
int | schedListen_ |
int | numSync_ |
Friends |
class | SmacGeneTimer |
class | SmacRecvTimer |
class | SmacSendTimer |
class | SmacNavTimer |
class | SmacNeighNavTimer |
class | SmacCsTimer |
class | SmacCounterTimer |