ns-3 Direct Code Execution
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ns3::DceManagerHelper Class Reference

configure required instances for DCE-capable nodes More...

#include <dce-manager-helper.h>

+ Collaboration diagram for ns3::DceManagerHelper:

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< ProcStatusGetProcStatus (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

Detailed Description

configure required instances for DCE-capable nodes

Definition at line 80 of file dce-manager-helper.h.

Constructor & Destructor Documentation

ns3::DceManagerHelper::DceManagerHelper ( )

Member Function Documentation

TypeId ns3::DceManagerHelper::GetInstanceTypeId ( void  ) const
virtual

Definition at line 45 of file dce-manager-helper.cc.

References GetTypeId().

+ Here is the call graph for this function:

std::vector< ProcStatus > ns3::DceManagerHelper::GetProcStatus ( void  )
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.

TypeId ns3::DceManagerHelper::GetTypeId ( void  )
static

Definition at line 32 of file dce-manager-helper.cc.

References m_loaderFactory.

Referenced by GetInstanceTypeId().

+ Here is the caller graph for this function:

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().

+ Here is the caller graph for this function:

void ns3::DceManagerHelper::Install ( NodeContainer  nodes)
Parameters
nodesa 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.

+ Here is the call graph for this function:

void ns3::DceManagerHelper::SetAttribute ( std::string  n1,
const AttributeValue &  v1 
)
Parameters
n1the name of the attribute to set to the ns3::DceManager
v1the 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 () 
)
Parameters
typethe name of the ProcessDelayModel to set (ns3::RandomProcessDelayModel and ns3::TimeOfDayProcessDelayModel are available)
n0the name of the attribute to set to the ProcessDelayModel
v0the value of the attribute to set to the ProcessDelayModel
n1the name of the attribute to set to the ProcessDelayModel
v1the 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)
Parameters
typethe 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 () 
)
Parameters
typethe name of the ns3::SocketFdFactory to set (ns3::Ns3SocketFdFactory and ns3::LinuxSocketFdFactory are available)
n0the name of the attribute to set to the ns3::SocketFdFactory
v0the 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 () 
)
Parameters
typethe name of the TaskScheduler to set
n0the name of the attribute to set to the TaskScheduler
v0the value of the attribute to set to the TaskScheduler
n1the name of the attribute to set to the TaskScheduler
v1the 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 
)
Parameters
n0the name of the attribute to set to the ns3::TaskManager
v0the 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)
Parameters
pthe 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.

Member Data Documentation

ObjectFactory ns3::DceManagerHelper::m_delayFactory
private

Definition at line 187 of file dce-manager-helper.h.

Referenced by DceManagerHelper(), Install(), and SetDelayModel().

ObjectFactory ns3::DceManagerHelper::m_loaderFactory
private

Definition at line 182 of file dce-manager-helper.h.

Referenced by GetTypeId(), Install(), and SetLoader().

ObjectFactory ns3::DceManagerHelper::m_managerFactory
private

Definition at line 185 of file dce-manager-helper.h.

Referenced by DceManagerHelper(), Install(), and SetAttribute().

ObjectFactory ns3::DceManagerHelper::m_networkStackFactory
private

Definition at line 186 of file dce-manager-helper.h.

Referenced by DceManagerHelper(), Install(), and SetNetworkStack().

ObjectFactory ns3::DceManagerHelper::m_schedulerFactory
private

Definition at line 183 of file dce-manager-helper.h.

Referenced by DceManagerHelper(), Install(), and SetScheduler().

ObjectFactory ns3::DceManagerHelper::m_taskManagerFactory
private

Definition at line 184 of file dce-manager-helper.h.

Referenced by DceManagerHelper(), Install(), and SetTaskManagerAttribute().

std::string ns3::DceManagerHelper::m_virtualPath
private

Definition at line 188 of file dce-manager-helper.h.

Referenced by DceManagerHelper(), GetVirtualPath(), and SetVirtualPath().

unsigned long ns3::DceManagerHelper::nanoCpt
staticprivate

Definition at line 189 of file dce-manager-helper.h.


The documentation for this class was generated from the following files: