00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #include "OverlayInterface.h"
00040 #include "ariba/overlay/BaseOverlay.h"
00041
00042
00043 namespace ariba {
00044 namespace overlay {
00045
00046 ServiceID OverlayInterface::OVERLAY_SERVICE_ID(0);
00047
00048 OverlayInterface::OverlayInterface(BaseOverlay& _baseoverlay, const NodeID& _nodeid,
00049 OverlayStructureEvents* _eventsReceiver, OverlayParameterSet _parameters) :
00050 baseoverlay(_baseoverlay), nodeid(_nodeid),
00051 eventsReceiver(_eventsReceiver), parameters(_parameters) {
00052
00053 _baseoverlay.bind(this, OVERLAY_SERVICE_ID);
00054 }
00055
00056 OverlayInterface::~OverlayInterface() {
00057 baseoverlay.unbind(this, OVERLAY_SERVICE_ID);
00058 }
00059
00060 void OverlayInterface::onLinkUp(const LinkID& lnk, const NodeID& remote) {
00061 }
00062
00063 void OverlayInterface::onLinkDown(const LinkID& lnk, const NodeID& remote) {
00064 }
00065
00066 void OverlayInterface::onLinkChanged(const LinkID& lnk, const NodeID& remote) {
00067 }
00068
00069 void OverlayInterface::onLinkFail(const LinkID& lnk, const NodeID& remote) {
00070 }
00071
00072 void OverlayInterface::onLinkQoSChanged(const LinkID& lnk,
00073 const NodeID& remote, const LinkProperties& prop) {
00074 }
00075
00076 bool OverlayInterface::onLinkRequest(const NodeID& remote,
00077 const DataMessage& msg) {
00078 return true;
00079 }
00080
00081 void OverlayInterface::onMessage(const DataMessage& msg, const NodeID& remote,
00082 const LinkID& lnk) {
00083 }
00084
00085 std::string OverlayInterface::debugInformation() const {
00086 return "No Information Available.";
00087 }
00088
00089 const OverlayParameterSet& OverlayInterface::getParameters() const {
00090 return parameters;
00091 }
00092
00093 }}