Ignore:
Timestamp:
May 7, 2009, 4:51:31 PM (15 years ago)
Author:
Christoph Mayer
Message:

-Integration of Branch 20090424-mayer-sideport

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/overlay/BaseOverlay.h

    r3071 r3374  
    7070        class NodeListener;
    7171        class CommunicationListener;
     72        class SideportListener;
    7273        namespace utility {
    7374                class OvlVis;
     
    220221
    221222        /**
     223         * TODO
     224         */
     225        bool registerSidePort(SideportListener* _sideport);
     226
     227        /**
     228         * TODO
     229         */
     230        bool unregisterSidePort(SideportListener* _sideport);
     231
     232        /**
    222233         * Returns the own nodeID or the NodeID of the specified link
    223234         *
     
    226237         */
    227238        const NodeID& getNodeID( const LinkID& lid = LinkID::UNSPECIFIED ) const ;
     239
     240        /**
     241         * Return all Links for the specified remote nodeid, or all links when
     242         * the node id given is set to unspecified
     243         *
     244         * @param nid The node id to request links for, or unspecified for all links
     245         * @return a vector that contains all the link ids requested
     246         */
     247        vector<LinkID> getLinkIDs( const NodeID& nid = NodeID::UNSPECIFIED ) const;
    228248
    229249        /**
     
    342362
    343363        /**
     364         * TODO
     365         */
     366        SideportListener* sideport;
     367
     368        /**
    344369         * The abstract overlay interface that implements
    345370         * the overlay specific functionality.
     
    387412                static const LinkItem UNSPECIFIED;
    388413
     414                LinkItem()
     415                        : link(LinkID::UNSPECIFIED), node(NodeID::UNSPECIFIED),
     416                                service(ServiceID::UNSPECIFIED), interface(&CommunicationListener::DEFAULT),
     417                                autolink(false), lastuse(0){
     418                }
     419
    389420                LinkItem( const LinkID& _link, const NodeID& _node,
    390421                                const ServiceID& _service, CommunicationListener* _interface )
    391422                        : link( _link ), node( _node ), service( _service ), interface( _interface ),
    392423                                autolink( false ), lastuse( time(NULL) ) {
     424
     425                        assert( _interface != NULL );
    393426                }
    394427
Note: See TracChangeset for help on using the changeset viewer.