|
CPN
Computational Process Networks
|
#include <VariantCPNLoader.h>
Collaboration diagram for CPN::VariantCPNLoader:Public Member Functions | |
| VariantCPNLoader () | |
| VariantCPNLoader (Variant conf) | |
| ~VariantCPNLoader () | |
| Variant & | GetConfig () |
| void | MergeConfig (Variant v) |
| void | KernelName (const std::string &name) |
| void | KernelHost (const std::string &host) |
| void | KernelPort (const std::string &port) |
| void | AddLib (const std::string &filename) |
| void | AddLibList (const std::string &filename) |
| void | AddLibPath (const std::string &path) |
| void | UseD4R (bool value) |
| void | GrowQueueMaxThreshold (bool value) |
| void | SwallowBrokenQueueExceptions (bool value) |
| void | LogLevel (int i) |
| void | ContextHost (const std::string &host) |
| void | ContextPort (const std::string &port) |
| void | AddNode (Variant v) |
| void | AddQueue (Variant v) |
| void | AddNodeMapping (const std::string &noden, const std::string &kernn) |
| std::pair< bool, std::string > | Validate () |
| CPN::KernelAttr | GetKernelAttr () |
| void | Setup (CPN::Kernel *kernel) |
Static Public Member Functions | |
| static CPN::shared_ptr < CPN::Context > | LoadContext (Variant v) |
| static CPN::KernelAttr | GetKernelAttr (Variant args) |
| static void | Setup (CPN::Kernel *kernel, Variant args) |
| static void | LoadNodes (CPN::Kernel *kernel, Variant nodelist, Variant nodemap) |
| static void | LoadNode (CPN::Kernel *kernel, Variant attr, Variant nodemap) |
| static void | LoadQueues (CPN::Kernel *kernel, Variant queuelist) |
| static void | LoadQueue (CPN::Kernel *kernel, Variant attr) |
| static std::pair< bool, std::string > | Validate (Variant conf) |
Private Attributes | |
| Variant | config |
Load a CPN network from a specially defined Variant
Definition at line 36 of file VariantCPNLoader.h.
| CPN::VariantCPNLoader::VariantCPNLoader | ( | ) |
Definition at line 37 of file VariantCPNLoader.cc.
| CPN::VariantCPNLoader::VariantCPNLoader | ( | Variant | conf | ) |
Definition at line 38 of file VariantCPNLoader.cc.
| CPN::VariantCPNLoader::~VariantCPNLoader | ( | ) |
Definition at line 39 of file VariantCPNLoader.cc.
| void CPN::VariantCPNLoader::AddLib | ( | const std::string & | filename | ) |
| void CPN::VariantCPNLoader::AddLibList | ( | const std::string & | filename | ) |
| void CPN::VariantCPNLoader::AddLibPath | ( | const std::string & | path | ) |
| void CPN::VariantCPNLoader::AddNode | ( | Variant | v | ) |
Definition at line 102 of file VariantCPNLoader.cc.
References config.
Referenced by MergeConfig().
Here is the caller graph for this function:| void CPN::VariantCPNLoader::AddNodeMapping | ( | const std::string & | noden, |
| const std::string & | kernn | ||
| ) |
| void CPN::VariantCPNLoader::AddQueue | ( | Variant | v | ) |
Definition at line 120 of file VariantCPNLoader.cc.
References config.
Referenced by MergeConfig().
Here is the caller graph for this function:| void CPN::VariantCPNLoader::ContextHost | ( | const std::string & | host | ) |
| void CPN::VariantCPNLoader::ContextPort | ( | const std::string & | port | ) |
|
inline |
|
inline |
Definition at line 66 of file VariantCPNLoader.h.
References config, and GetKernelAttr().
Referenced by GetKernelAttr().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 186 of file VariantCPNLoader.cc.
References CPN::KernelAttr::AddNodeList(), CPN::KernelAttr::AddNodeSearchPath(), CPN::KernelAttr::AddSharedLib(), CPN::KernelAttr::GrowQueueMaxThreshold(), LoadContext(), CPN::KernelAttr::SetContext(), CPN::KernelAttr::SetHostName(), CPN::KernelAttr::SetServName(), CPN::KernelAttr::SwallowBrokenQueueExceptions(), and CPN::KernelAttr::UseD4R().
Here is the call graph for this function:| void CPN::VariantCPNLoader::GrowQueueMaxThreshold | ( | bool | value | ) |
| void CPN::VariantCPNLoader::KernelHost | ( | const std::string & | host | ) |
| void CPN::VariantCPNLoader::KernelName | ( | const std::string & | name | ) |
| void CPN::VariantCPNLoader::KernelPort | ( | const std::string & | port | ) |
|
static |
Definition at line 151 of file VariantCPNLoader.cc.
References SocketAddress::CreateIP(), and CPN::Context::Local().
Referenced by GetKernelAttr().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 245 of file VariantCPNLoader.cc.
References CPN::Kernel::CreateNode(), CPN::NodeAttr::GetName(), CPN::NodeAttr::SetKernel(), and CPN::NodeAttr::SetParam().
Referenced by LoadNodes().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 230 of file VariantCPNLoader.cc.
References LoadNode().
Referenced by Setup().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 278 of file VariantCPNLoader.cc.
References CPN::Kernel::CreateQueue(), CPN::QueueAttr::SetAlpha(), CPN::QueueAttr::SetDatatype(), CPN::QueueAttr::SetHint(), CPN::QueueAttr::SetMaxWriteThreshold(), CPN::QueueAttr::SetName(), CPN::QueueAttr::SetNumChannels(), CPN::QueueAttr::SetReader(), and CPN::QueueAttr::SetWriter().
Referenced by LoadQueues().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 263 of file VariantCPNLoader.cc.
References LoadQueue().
Referenced by Setup().
Here is the call graph for this function:
Here is the caller graph for this function:| void CPN::VariantCPNLoader::LogLevel | ( | int | i | ) |
| void CPN::VariantCPNLoader::MergeConfig | ( | Variant | v | ) |
Definition at line 77 of file VariantCPNLoader.cc.
References AddNode(), AddQueue(), and config.
Here is the call graph for this function:
|
inline |
Definition at line 67 of file VariantCPNLoader.h.
References config, and Setup().
Referenced by Setup().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 225 of file VariantCPNLoader.cc.
References LoadNodes(), and LoadQueues().
Here is the call graph for this function:| void CPN::VariantCPNLoader::SwallowBrokenQueueExceptions | ( | bool | value | ) |
| void CPN::VariantCPNLoader::UseD4R | ( | bool | value | ) |
|
inline |
Definition at line 64 of file VariantCPNLoader.h.
References config, and Validate().
Referenced by Validate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 303 of file VariantCPNLoader.cc.
|
private |
Definition at line 82 of file VariantCPNLoader.h.
Referenced by AddLib(), AddLibList(), AddLibPath(), AddNode(), AddNodeMapping(), AddQueue(), ContextHost(), ContextPort(), GetConfig(), GetKernelAttr(), GrowQueueMaxThreshold(), KernelHost(), KernelName(), KernelPort(), LogLevel(), MergeConfig(), Setup(), SwallowBrokenQueueExceptions(), UseD4R(), and Validate().
1.8.5