Public Member Functions

BBItem Class Reference
[BaseUtility - blackboard related stuff]

Contains detailed information about the items published using the BB. More...

#include <ImNotifiable.h>

Inherited by BatteryState, BBMoBANMessage, DroppedPacket, HostState, Move, Packet, PassedMessage, and UWBIRPacket.

List of all members.

Public Member Functions

virtual BBItemparentObject () const
 Returns an instance of BBItem.

Detailed Description

Contains detailed information about the items published using the BB.

To understand this class, consider the case of routing protocols. The minimal entry in a routing table consists of the tuple <target, neighbor, cost>. However, some more specific routing protocol may want to store more information in a table entry. Hence, it subclasses the original entry and adds its own fields. How do other parties that are interested in topology changes still receive information about changes in the routing table? The only way is to make the inheritance structure a bit accessible. This enables the BB to further deliver notifications to subscribers of the original entry, but also to those of the new one -- and all that without the need to recompile the framework due to a newly introduced constant.

The info function of cObject should be implemented -- you can use it to distinguish between items of the same category (like two MAC addresses if the host has two network interfaces).

See also:
BBITEM_METAINFO
Author:
Andreas Koepke

Definition at line 32 of file ImNotifiable.h.


Member Function Documentation

virtual BBItem* BBItem::parentObject (  )  const [inline, virtual]

Returns an instance of BBItem.

This method is used to get a kind of class hierarchy at runtime.

Reimplemented in HostState, Move, PassedMessage, BatteryState, DroppedPacket, BBMoBANMessage, Packet, and UWBIRPacket.

Definition at line 40 of file ImNotifiable.h.

Referenced by Blackboard::fillParentVector().

                                         {
        return new BBItem();
    }


The documentation for this class was generated from the following file: