#include <cchannel.h>
Inheritance diagram for cBasicChannel:
Public Member Functions | |
Constructors, destructor, assignment | |
cBasicChannel (const char *name=NULL) | |
cBasicChannel (const cBasicChannel &ch) | |
virtual | ~cBasicChannel () |
cBasicChannel & | operator= (const cBasicChannel &msg) |
Redefined cObject functions. | |
virtual cPolymorphic * | dup () const |
virtual std::string | info () const |
virtual void | forEachChild (cVisitor *v) |
virtual void | writeContents (std::ostream &os) |
virtual void | netPack (cCommBuffer *buffer) |
virtual void | netUnpack (cCommBuffer *buffer) |
Setting and getting channel attributes. | |
virtual void | setDelay (double d) |
virtual void | setError (double d) |
virtual void | setDatarate (double d) |
virtual void | setDisabled (bool d) |
virtual void | setDelay (cPar *p) |
virtual void | setError (cPar *p) |
virtual void | setDatarate (cPar *p) |
virtual double | delay () const |
virtual double | error () const |
virtual double | datarate () const |
virtual bool | disabled () 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 bool | deliver (cMessage *msg, simtime_t at) |
|
Constructor.
|
|
Copy 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. |
|
Returns the "disabled" parameter of the channel.
|
|
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.
|
|
Calls v->visit(this) 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 cBasicChannel. The name member doesn't get copied; see cObject's operator=() for more details. |
|
DEPRECATED.
|
|
Sets the data rate parameter of the channel. An alternative way of accessing this values is by par("datarate"). This value affects the transmission time of messages sent through the channel.
|
|
DEPRECATED.
|
|
Sets the delay parameter of the channel. An alternative way of accessing this values is by par("delay"). |
|
Sets the "disabled" parameter of the channel. A disabled channel discards all messages sent on it. |
|
DEPRECATED.
|
|
Sets the bit error rate parameter of the channel. An alternative way of accessing this values is by par("error"). When a message sent through the channel suffers at least one bit error, its bit error flag will be set.
|
|
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. |