configure required instances for DCE-capable nodes More...
#include <dce-manager-helper.h>
Public Member Functions | |
DceManagerHelper () | |
virtual TypeId | GetInstanceTypeId (void) const |
std::string | GetVirtualPath () const |
void | Install (NodeContainer nodes) |
void | SetAttribute (std::string n1, const AttributeValue &v1) |
void | SetDelayModel (std::string type, std::string n0="", const AttributeValue &v0=EmptyAttributeValue(), std::string n1="", const AttributeValue &v1=EmptyAttributeValue()) |
void | SetLoader (std::string type) |
void | SetNetworkStack (std::string type, std::string n0="", const AttributeValue &v0=EmptyAttributeValue()) |
void | SetScheduler (std::string type, std::string n0="", const AttributeValue &v0=EmptyAttributeValue(), std::string n1="", const AttributeValue &v1=EmptyAttributeValue()) |
void | SetTaskManagerAttribute (std::string n0, const AttributeValue &v0) |
void | SetVirtualPath (std::string p) |
Static Public Member Functions | |
static std::vector< ProcStatus > | GetProcStatus (void) |
static TypeId | GetTypeId (void) |
Private Attributes | |
ObjectFactory | m_delayFactory |
ObjectFactory | m_loaderFactory |
ObjectFactory | m_managerFactory |
ObjectFactory | m_networkStackFactory |
ObjectFactory | m_schedulerFactory |
ObjectFactory | m_taskManagerFactory |
std::string | m_virtualPath |
Static Private Attributes | |
static unsigned long | nanoCpt |
configure required instances for DCE-capable nodes
Definition at line 80 of file dce-manager-helper.h.
ns3::DceManagerHelper::DceManagerHelper | ( | ) |
Construct a DceManagerHelper
Definition at line 50 of file dce-manager-helper.cc.
References m_delayFactory, m_managerFactory, m_networkStackFactory, m_schedulerFactory, m_taskManagerFactory, and m_virtualPath.
|
virtual |
Definition at line 45 of file dce-manager-helper.cc.
References GetTypeId().
|
static |
This method returns a Vector of process information that are already finished.
Definition at line 137 of file dce-manager-helper.cc.
References errno.
|
static |
Definition at line 32 of file dce-manager-helper.cc.
References m_loaderFactory.
Referenced by GetInstanceTypeId().
std::string ns3::DceManagerHelper::GetVirtualPath | ( | ) | const |
This method returns the path used by simulated methods 'execvp' and 'execlp'
Definition at line 131 of file dce-manager-helper.cc.
References m_virtualPath.
Referenced by Install().
void ns3::DceManagerHelper::Install | ( | NodeContainer | nodes | ) |
nodes | a set of nodes |
This method creates all of DCE related instances to run an applicaion binary on nodes.
Definition at line 101 of file dce-manager-helper.cc.
References ns3::g_firstPid, GetVirtualPath(), m_delayFactory, m_loaderFactory, m_managerFactory, m_networkStackFactory, m_schedulerFactory, and m_taskManagerFactory.
void ns3::DceManagerHelper::SetAttribute | ( | std::string | n1, |
const AttributeValue & | v1 | ||
) |
n1 | the name of the attribute to set to the ns3::DceManager |
v1 | the value of the attribute to set to the ns3::DceManager |
Set these attributes on each ns3::DceManager
Definition at line 96 of file dce-manager-helper.cc.
References m_managerFactory.
void ns3::DceManagerHelper::SetDelayModel | ( | std::string | type, |
std::string | n0 = "" , |
||
const AttributeValue & | v0 = EmptyAttributeValue () , |
||
std::string | n1 = "" , |
||
const AttributeValue & | v1 = EmptyAttributeValue () |
||
) |
type | the name of the ProcessDelayModel to set (ns3::RandomProcessDelayModel and ns3::TimeOfDayProcessDelayModel are available) |
n0 | the name of the attribute to set to the ProcessDelayModel |
v0 | the value of the attribute to set to the ProcessDelayModel |
n1 | the name of the attribute to set to the ProcessDelayModel |
v1 | the value of the attribute to set to the ProcessDelayModel |
Set these attributes on each ns3::ProcessDelayModel
Definition at line 70 of file dce-manager-helper.cc.
References m_delayFactory.
void ns3::DceManagerHelper::SetLoader | ( | std::string | type | ) |
type | the name of loader set to the ns3::LoaderFactory (ns3::CoojaLoaderFactory[] and ns3::DlmLoaderFactory[] are available) |
Definition at line 84 of file dce-manager-helper.cc.
References m_loaderFactory.
void ns3::DceManagerHelper::SetNetworkStack | ( | std::string | type, |
std::string | n0 = "" , |
||
const AttributeValue & | v0 = EmptyAttributeValue () |
||
) |
type | the name of the ns3::SocketFdFactory to set (ns3::Ns3SocketFdFactory and ns3::LinuxSocketFdFactory are available) |
n0 | the name of the attribute to set to the ns3::SocketFdFactory |
v0 | the value of the attribute to set to the ns3::SocketFdFactory |
Set these attributes on each ns3::SocketFdFactory
Definition at line 89 of file dce-manager-helper.cc.
References m_networkStackFactory.
void ns3::DceManagerHelper::SetScheduler | ( | std::string | type, |
std::string | n0 = "" , |
||
const AttributeValue & | v0 = EmptyAttributeValue () , |
||
std::string | n1 = "" , |
||
const AttributeValue & | v1 = EmptyAttributeValue () |
||
) |
type | the name of the TaskScheduler to set |
n0 | the name of the attribute to set to the TaskScheduler |
v0 | the value of the attribute to set to the TaskScheduler |
n1 | the name of the attribute to set to the TaskScheduler |
v1 | the value of the attribute to set to the TaskScheduler |
Set these attributes on each ns3::TaskScheduler
Definition at line 61 of file dce-manager-helper.cc.
References m_schedulerFactory.
void ns3::DceManagerHelper::SetTaskManagerAttribute | ( | std::string | n0, |
const AttributeValue & | v0 | ||
) |
n0 | the name of the attribute to set to the ns3::TaskManager |
v0 | the value of the attribute to set to the ns3::TaskManager |
Set these attributes on each ns3::TaskManager
Definition at line 79 of file dce-manager-helper.cc.
References m_taskManagerFactory.
void ns3::DceManagerHelper::SetVirtualPath | ( | std::string | p | ) |
p | the name of path |
This method configures the path used by simulated methods 'execvp' and 'execlp'
Definition at line 126 of file dce-manager-helper.cc.
References m_virtualPath.
|
private |
Definition at line 187 of file dce-manager-helper.h.
Referenced by DceManagerHelper(), Install(), and SetDelayModel().
|
private |
Definition at line 182 of file dce-manager-helper.h.
Referenced by GetTypeId(), Install(), and SetLoader().
|
private |
Definition at line 185 of file dce-manager-helper.h.
Referenced by DceManagerHelper(), Install(), and SetAttribute().
|
private |
Definition at line 186 of file dce-manager-helper.h.
Referenced by DceManagerHelper(), Install(), and SetNetworkStack().
|
private |
Definition at line 183 of file dce-manager-helper.h.
Referenced by DceManagerHelper(), Install(), and SetScheduler().
|
private |
Definition at line 184 of file dce-manager-helper.h.
Referenced by DceManagerHelper(), Install(), and SetTaskManagerAttribute().
|
private |
Definition at line 188 of file dce-manager-helper.h.
Referenced by DceManagerHelper(), GetVirtualPath(), and SetVirtualPath().
|
staticprivate |
Definition at line 189 of file dce-manager-helper.h.