Simulation Programming

API: Simulation Programming
API
Simulation Programming

Classes

class  cMessage
 The message class in OMNeT++. cMessage objects may represent events, messages, jobs or other entities in a simulation. To represent network packets, use the cPacket subclass. More...
class  cPacket
 A subclass of cMessage to represent packets, frames, datagrams, application messages, and similar data. More...
class  cPacketQueue
 A queue class specialized for cPacket objects. More...
class  cQueue
 Queue class for objects derived from cObject. More...
class  cSimpleModule
 Base class for all simple module classes. More...
class  cTopology
 Routing support. The cTopology class was designed primarily to support routing in telecommunication or multiprocessor networks. More...

Description

Classes in this group are essential to writing OMNeT++ simulation models.

  • cSimpleModule represents active modules in the simulation. The user implements new modules by subclassing cSimpleModule and overriding its handleMessage() or activity() member function.
  • cMessage represents events, and also messages sent among modules
  • cPacket is a subclass of cMessage that represents network packets
  • cQueue is a generic FIFO data structure for storing objects
  • cPacketQueue is a cQueue subclass specialized for cPacket objects
  • cTopology is a utility class for discovering the topology of the model (which is often a communication network), and finding shortest paths in it