#include <cchannel.h>
Inheritance diagram for cSimpleChannel::
Public Methods | |
Constructors, destructor, assignment | |
cSimpleChannel (const cSimpleChannel &ch) | |
cSimpleChannel (const char *name=NULL, cLinkType *l=NULL) | |
virtual | ~cSimpleChannel () |
cSimpleChannel& | operator= (const cSimpleChannel &msg) |
Redefined cObject functions. | |
virtual cObject* | dup () const |
virtual void | info (char *buf) |
virtual void | forEach (ForeachFunc do_fn) |
virtual void | writeContents (ostream &os) |
virtual int | netPack () |
virtual int | netUnpack () |
Setting and getting link attributes. | |
virtual void | setDelay (cPar *p) |
virtual void | setError (cPar *p) |
virtual void | setDatarate (cPar *p) |
virtual cPar* | delay () const |
virtual cPar* | error () const |
virtual cPar* | datarate () const |
Redefined cChannel methods. | |
virtual cPar& | addPar (const char *s) |
virtual cPar& | addPar (cPar *p) |
Transmission state. | |
virtual bool | isBusy () const |
virtual simtime_t | transmissionFinishes () const |
Internally used methods. | |
virtual void | deliver (cMessage *msg, simtime_t at) |
|
Copy constructor. |
|
Constructor. |
|
Destructor. |
|
Redefined to specially handle "delay", "error" and "datarate". Reimplemented from cChannel. |
|
Redefined to specially handle "delay", "error" and "datarate". Reimplemented from cChannel. |
|
Returns the data rate of the channel. |
|
Returns the delay of the channel. |
|
Performs bit error rate, delay and transmission time modelling. Reimplemented from cChannel. |
|
Creates and returns an exact copy of this object. See cObject for more details. Reimplemented from cChannel. |
|
Returns the bit error rate of the channel. |
|
Call the passed function for each contained object. See cObject for more details. Reimplemented from cChannel. |
|
Produces a one-line description of object contents into the buffer passed as argument. See cObject for more details. Reimplemented from cChannel. |
|
Returns whether the sender gate is currently transmitting. Transmission time of a message depends on the message length and the data rate assigned to the channel. If no data rate is assigned to the channel, the result is false. |
|
Serializes the object into a PVM or MPI send buffer Used by the simulation kernel for parallel execution. See cObject for more details. Reimplemented from cChannel. |
|
Deserializes the object from a PVM or MPI receive buffer Used by the simulation kernel for parallel execution. See cObject for more details. Reimplemented from cChannel. |
|
Assignment operator. Duplication and the assignment operator work all right with cSimpleChannel. The name member doesn't get copied; see cObject's operator=() for more details. |
|
Sets the data rate parameter of the channel. This affects the transmission time of messages sent through the channel. Ownership of the cPar object is handled according to the takeOwnership flag.
|
|
Sets the delay parameter of the channel. Ownership of the cPar object is handled according to the takeOwnership flag. |
|
Sets the bit error rate parameter of the channel. When a message sent through the channel suffers at least one bit error, its bit error flag will be set. Ownership of the cPar object is handled according to the takeOwnership flag.
|
|
Returns the simulation time the sender gate will finish transmitting. The return value is only meaningful if isBusy() is true. Transmission time of a message depends on the message length and the data rate assigned to the channel. |
|
Writes textual information about this object to the stream. See cObject for more details. Reimplemented from cChannel. |