A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
device-energy-model.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
7 */
8
10
11#include "ns3/log.h"
12
13namespace ns3
14{
15namespace energy
16{
17
18NS_LOG_COMPONENT_DEFINE("DeviceEnergyModel");
19NS_OBJECT_ENSURE_REGISTERED(DeviceEnergyModel);
20
21TypeId
23{
24 static TypeId tid = TypeId("ns3::energy::DeviceEnergyModel")
25 .AddDeprecatedName("ns3::DeviceEnergyModel")
27 .SetGroupName("Energy");
28 return tid;
29}
30
35
40
41double
43{
44 NS_LOG_FUNCTION(this);
45 return DoGetCurrentA();
46}
47
48/*
49 * Private function starts here.
50 */
51
52double
54{
55 NS_LOG_FUNCTION(this);
56 return 0.0;
57}
58
59} // namespace energy
60} // namespace ns3
A base class which provides memory management and object aggregation.
Definition object.h:78
a unique identifier for an interface.
Definition type-id.h:48
TypeId AddDeprecatedName(const std::string &name)
Add an deprecated name for a TypeId.
Definition type-id.cc:862
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition type-id.cc:1001
static TypeId GetTypeId()
Get the type ID.
virtual double DoGetCurrentA() const
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition log.h:191
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition object-base.h:35
Every class exported by the ns3 library is enclosed in the ns3 namespace.