#include <cchannel.h>
Inheritance diagram for cChannel::
Public Methods | |
Constructors, destructor, assignment | |
cChannel (const cChannel &ch) | |
cChannel (const char *name=NULL, cLinkType *l=NULL) | |
virtual | ~cChannel () |
cChannel& | operator= (const cChannel &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 () |
Channel information. | |
cGate* | fromGate () const |
cLinkType* | link () const |
Parameter list. FIXME 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 void | deliver (cMessage *msg, simtime_t at) |
|
Copy constructor. |
|
Constructor. |
|
Destructor. |
|
Add a parameter to the channel's parameter list. Reimplemented in cSimpleChannel. |
|
Add a parameter to the channel's parameter list. Reimplemented in cSimpleChannel. |
|
This function is called internally by the simulation kernel for transmission modelling. Reimplemented in cSimpleChannel. |
|
Creates and returns an exact copy of this object. See cObject for more details. Reimplemented from cObject. Reimplemented in cSimpleChannel. |
|
Returns the index of the parameter with the given name in the channel's parameter list, or -1 if it could not be found. |
|
Call the passed function for each contained object. See cObject for more details. Reimplemented from cObject. Reimplemented in cSimpleChannel. |
|
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 cObject. Reimplemented in cSimpleChannel. |
|
Returns the link type of the gate, if it has one. |
|
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 cSimpleChannel. |
|
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 cSimpleChannel. |
|
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 cSimpleChannel. |