38#ifndef UWOPTICAL_ACOUSTIC_CONTROLLER_PHY_H
39#define UWOPTICAL_ACOUSTIC_CONTROLLER_PHY_H
42#include "phymac-clmsg.h"
69 virtual int command(
int,
const char*
const*);
94 virtual void recv(Packet *p,
int idSrc);
virtual ~UwMultiStackControllerPhy()
Destructor of UwMultiPhy class.
virtual void recv(Packet *p, int idSrc)
It manages each packet reception, either from the upper and the lower layer.
UwMultiStackControllerPhy()
Constructor of UwMultiPhy class.
static map< UWPHY_CONTROLLER_STATE, string > state_info
virtual void stateBusy2Tx(Packet *p)
Called when a node is transmitting a packet.
virtual void stateBusy2Rx(int id)
Called when a node is receiving correctely a packet from the lower layer.
virtual int recvSyncClMsg(ClMessage *m)
Cross-Layer messages synchronous interpreter.
virtual int command(int, const char *const *)
TCL command interpreter.
int receiving_id
current receiving PHY ID
UWPHY_CONTROLLER_STATE current_state
virtual void initInfo()
This function is used to initialize the UwMultiStackControllerPhy debugging info.
@ UWPHY_CONTROLLER_STATE_IDLE
@ UWPHY_CONTROLLER_STATE_BUSY_2_TX
@ UWPHY_CONTROLLER_STATE_BUSY_2_RX
virtual void stateIdle()
Node is in Idle state.
Class used to represents the UwMultiStackController layer of a node.
Definition of UwMultiStackController class.