#include <cchannel.h>
Inheritance diagram for cChannel:
This channel doesn't delay or change messages. One can attach parameters (e.g. "cost").
Public Member Functions | |
Constructors, destructor, assignment | |
cChannel (const cChannel &ch) | |
cChannel (const char *name=NULL, cChannelType *l=NULL) | |
virtual | ~cChannel () |
cChannel & | operator= (const cChannel &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) |
Channel information. | |
cGate * | fromGate () const |
cChannelType * | channelType () const |
Parameter list. TBD needs remove, etc. operators too! | |
virtual cPar & | addPar (const char *s) |
virtual cPar & | addPar (cPar *p) |
virtual cPar & | par (int n) |
virtual cPar & | par (const char *s) |
virtual int | findPar (const char *s) const |
virtual bool | hasPar (const char *s) const |
virtual cArray & | parList () |
Internally used methods. | |
virtual bool | deliver (cMessage *msg, simtime_t at) |
Friends | |
class | cGate |
|
Copy constructor.
|
|
Constructor.
|
|
Destructor.
|
|
Add a parameter to the channel's parameter list.
Reimplemented in cBasicChannel. |
|
Add a parameter to the channel's parameter list.
Reimplemented in cBasicChannel. |
|
Returns the channel type of the channel, if it has one.
|
|
This function is called internally by the simulation kernel for transmission modelling. A false return value means that the message object should be deleted by the caller; this can be used to model that the message was lost in the channel. Reimplemented in cBasicChannel. |
|
Creates and returns an exact copy of this object. See cObject for more details. Reimplemented from cObject. Reimplemented in cBasicChannel. |
|
Returns the index of the parameter with the given name in the channel's parameter list, or -1 if it could not be found.
|
|
Calls v->visit(this) for each contained object. See cObject for more details. Reimplemented from cObject. Reimplemented in cBasicChannel. |
|
Returns the gate this channel is attached to.
|
|
Check if a parameter exists.
|
|
Produces a one-line description of object contents into the buffer passed as argument. See cObject for more details. Reimplemented from cPolymorphic. Reimplemented in cBasicChannel. |
|
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 cObject. Reimplemented in cBasicChannel. |
|
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 cObject. Reimplemented in cBasicChannel. |
|
Assignment operator. Duplication and the assignment operator work all right with cChannel. The name member doesn't get copied; see cObject's operator=() for more details. |
|
Returns the object with the given name in the channel's parameter list, converting it to a cPar.
|
|
Returns the nth object in the channel's parameter list, converting it to a cPar.
|
|
Returns the cArray member of the message which holds the parameters and other attached objects. Parameters can be inserted, retrieved, looked up or deleted through cArray's member functions. |
|
Writes textual information about this object to the stream. See cObject for more details. Reimplemented from cObject. Reimplemented in cBasicChannel. |