Daniel
--
-----------------------------------------
o Dipl.-Ing. Daniel Willkomm
o TU-Berlin
o Telecommunication Networks Group
o http://www.tkn.tu-berlin.de/~willkomm/
o Mail: will...@tkn.tu-berlin.de
In my opinion the analogue module is called by the receiving node. If
this is right it is not possible to get parameters from the
omnetpp.ini which are only for the sending node.
An example:
Node[0] is sending node and Node[1] receiving node. The parameters in
omnetpp.ini are
Network.node[0].nic.phy.parameter = 4.0
Network.node[1].nic.phy.parameter = 1.0
If my assumptions are right and the analogue module is called only by
the receiver it is not possible to work with the sending parameter
from Node[0]. I can only process the parameter from Node[1].
Is my assumption right? If yes, how can the sending node influence the
analogue module? If no, do you have any idea how I can process the
parameters from sending nodes?
> o Mail: willk...@tkn.tu-berlin.de
Daniel
o Mail: will...@tkn.tu-berlin.de
> o Mail: willk...@tkn.tu-berlin.de
today I wrote a new analogue model and I found a problem concerning
the described problem above:
The information I need is not static and not known at initialisation.
So it is not possible to put this value in the
"getAnalogueModelFromName()" Method.
Do you have any suggestion how I can change some parameters for the
analogueModel during lifetime?
thanks in advance
http://sourceforge.net/apps/trac/mixim/wiki/HowToWriteOwnAnalogueModel
you will find answers to all the questions you ask here :-)
Daniel
o Mail: will...@tkn.tu-berlin.de
If there is no way the AnalogueModel can calculate this parameter itself
from values passed during initialisation then there are two ways:
If the parameter is somehow dependent on the sender you can subclass
your own AirFrame message type which can hold this parameter and sent
this one in your own subclassed PhyLayer (override
"encapsMsg()"-method). The same way you can provide information about
the sender to the receiver (like its already done with the Move of the
sender).
If your parameter is only dependent on the receiving PhyLayer then you
can just keep a pointer to the AnalogueModel instance created in the
"getAnalogueModelFromName()" method and make it accessible at the point
where your parameter changes. Or you can give your AnalogueModel a
pointer to your PhyLayer-instance by which the AnalogueModel can access
the parameter during lifetime.
Hope this helps.
Karl
Ralf Zenker schrieb: