64 lines
1.5 KiB
C++
64 lines
1.5 KiB
C++
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
|
/*
|
|
* Copyright (c) 2007 University of Washington
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation;
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*
|
|
* Author: Craig Dowell <craigdo@ee.washingon.edu>
|
|
*
|
|
* Thu Feb 15 14:50:46 PST 2007 craigdo: Created.
|
|
*/
|
|
|
|
#include "ns3/debug.h"
|
|
#include "channel.h"
|
|
|
|
NS_DEBUG_COMPONENT_DEFINE ("Channel");
|
|
|
|
namespace ns3 {
|
|
|
|
const InterfaceId Channel::iid = MakeInterfaceId ("Channel", Object::iid);
|
|
|
|
Channel::Channel ()
|
|
: m_name("Channel")
|
|
{
|
|
SetInterfaceId (Channel::iid);
|
|
NS_DEBUG("Channel::Channel ()");
|
|
}
|
|
|
|
Channel::Channel (std::string name)
|
|
: m_name(name)
|
|
{
|
|
SetInterfaceId (Channel::iid);
|
|
NS_DEBUG("Channel::Channel (" << name << ")");
|
|
}
|
|
|
|
Channel::~Channel ()
|
|
{
|
|
NS_DEBUG("Channel::~Channel ()");
|
|
}
|
|
|
|
void
|
|
Channel::SetName(std::string name)
|
|
{
|
|
m_name = name;
|
|
}
|
|
|
|
std::string
|
|
Channel::GetName(void)
|
|
{
|
|
return m_name;
|
|
}
|
|
|
|
} // namespace ns3
|