CPN
Computational Process Networks
Public Member Functions | Private Attributes | List of all members
CPN::KernelAttr Class Reference

The attribute for the Kernel. More...

#include <KernelAttr.h>

+ Collaboration diagram for CPN::KernelAttr:

Public Member Functions

 KernelAttr (const std::string &name_)
 Create a new KernelAttr. There is only one required attributed and that is to give the Kernel a name. More...
 
 KernelAttr (const char *name_)
 
KernelAttrSetName (const std::string &n)
 
KernelAttrSetHostName (const std::string &hn)
 
KernelAttrSetServName (const std::string &sn)
 
KernelAttrSetContext (shared_ptr< Context > ctx)
 
KernelAttrSetRemoteEnabled (bool en)
 
KernelAttrUseD4R (bool enable)
 
KernelAttrSwallowBrokenQueueExceptions (bool enable)
 
KernelAttrGrowQueueMaxThreshold (bool enable)
 
KernelAttrAddSharedLib (const std::string &lib)
 
KernelAttrAddNodeList (const std::string &list)
 
KernelAttrAddNodeSearchPath (const std::string &p)
 
const std::string & GetName () const
 
const std::string & GetHostName () const
 
const std::string & GetServName () const
 
shared_ptr< ContextGetContext () const
 
bool GetRemoteEnabled () const
 
bool UseD4R () const
 
bool SwallowBrokenQueueExceptions () const
 
bool GrowQueueMaxThreshold () const
 
const std::vector< std::string > & GetSharedLibs () const
 
const std::vector< std::string > & GetNodeLists () const
 
const std::vector< std::string > & GetNodeSearchPaths () const
 

Private Attributes

std::string name
 
std::string hostname
 
std::string servname
 
shared_ptr< Contextcontext
 
bool remote_enabled
 
bool useD4R
 
bool swallowbrokenqueue
 
bool growmaxthresh
 
std::vector< std::string > sharedlibs
 
std::vector< std::string > nodelists
 
std::vector< std::string > searchpaths
 

Detailed Description

The attribute for the Kernel.

Possible parameters to the Kernel are the name, hostname, servname, and context. Only name is required.

Definition at line 40 of file KernelAttr.h.

Constructor & Destructor Documentation

CPN::KernelAttr::KernelAttr ( const std::string &  name_)
inline

Create a new KernelAttr. There is only one required attributed and that is to give the Kernel a name.

Parameters
name_the name for the Kernel.

Definition at line 46 of file KernelAttr.h.

47  : name(name_),
48  hostname("localhost"),
49  servname(""),
50  remote_enabled(false),
51  useD4R(true), swallowbrokenqueue(false),
52  growmaxthresh(true)
53  {}
std::string hostname
Definition: KernelAttr.h:142
std::string name
Definition: KernelAttr.h:141
std::string servname
Definition: KernelAttr.h:143
bool swallowbrokenqueue
Definition: KernelAttr.h:147
CPN::KernelAttr::KernelAttr ( const char *  name_)
inline

Definition at line 55 of file KernelAttr.h.

56  : name(name_),
57  hostname("localhost"),
58  servname(""),
59  remote_enabled(false),
60  useD4R(true), swallowbrokenqueue(false),
61  growmaxthresh(true)
62  {}
std::string hostname
Definition: KernelAttr.h:142
std::string name
Definition: KernelAttr.h:141
std::string servname
Definition: KernelAttr.h:143
bool swallowbrokenqueue
Definition: KernelAttr.h:147

Member Function Documentation

KernelAttr& CPN::KernelAttr::AddNodeList ( const std::string &  list)
inline

Definition at line 109 of file KernelAttr.h.

Referenced by CPN::VariantCPNLoader::GetKernelAttr().

109  {
110  nodelists.push_back(list);
111  return *this;
112  }
std::vector< std::string > nodelists
Definition: KernelAttr.h:150

+ Here is the caller graph for this function:

KernelAttr& CPN::KernelAttr::AddNodeSearchPath ( const std::string &  p)
inline

Definition at line 114 of file KernelAttr.h.

Referenced by CPN::VariantCPNLoader::GetKernelAttr().

114  {
115  searchpaths.push_back(p);
116  return *this;
117  }
std::vector< std::string > searchpaths
Definition: KernelAttr.h:151

+ Here is the caller graph for this function:

KernelAttr& CPN::KernelAttr::AddSharedLib ( const std::string &  lib)
inline

Definition at line 104 of file KernelAttr.h.

Referenced by CPN::VariantCPNLoader::GetKernelAttr().

104  {
105  sharedlibs.push_back(lib);
106  return *this;
107  }
std::vector< std::string > sharedlibs
Definition: KernelAttr.h:149

+ Here is the caller graph for this function:

shared_ptr<Context> CPN::KernelAttr::GetContext ( ) const
inline

Definition at line 125 of file KernelAttr.h.

125 { return context; }
shared_ptr< Context > context
Definition: KernelAttr.h:144
const std::string& CPN::KernelAttr::GetHostName ( ) const
inline

Definition at line 121 of file KernelAttr.h.

Referenced by CPN::Kernel::Kernel().

121 { return hostname; }
std::string hostname
Definition: KernelAttr.h:142

+ Here is the caller graph for this function:

const std::string& CPN::KernelAttr::GetName ( ) const
inline

Definition at line 119 of file KernelAttr.h.

119 { return name; }
std::string name
Definition: KernelAttr.h:141
const std::vector<std::string>& CPN::KernelAttr::GetNodeLists ( ) const
inline

Definition at line 137 of file KernelAttr.h.

Referenced by CPN::Kernel::Kernel().

137 { return nodelists; }
std::vector< std::string > nodelists
Definition: KernelAttr.h:150

+ Here is the caller graph for this function:

const std::vector<std::string>& CPN::KernelAttr::GetNodeSearchPaths ( ) const
inline

Definition at line 139 of file KernelAttr.h.

Referenced by CPN::Kernel::Kernel().

139 { return searchpaths; }
std::vector< std::string > searchpaths
Definition: KernelAttr.h:151

+ Here is the caller graph for this function:

bool CPN::KernelAttr::GetRemoteEnabled ( ) const
inline

Definition at line 127 of file KernelAttr.h.

127 { return remote_enabled; }
const std::string& CPN::KernelAttr::GetServName ( ) const
inline

Definition at line 123 of file KernelAttr.h.

Referenced by CPN::Kernel::Kernel().

123 { return servname; }
std::string servname
Definition: KernelAttr.h:143

+ Here is the caller graph for this function:

const std::vector<std::string>& CPN::KernelAttr::GetSharedLibs ( ) const
inline

Definition at line 135 of file KernelAttr.h.

Referenced by CPN::Kernel::Kernel().

135 { return sharedlibs; }
std::vector< std::string > sharedlibs
Definition: KernelAttr.h:149

+ Here is the caller graph for this function:

KernelAttr& CPN::KernelAttr::GrowQueueMaxThreshold ( bool  enable)
inline

Definition at line 99 of file KernelAttr.h.

Referenced by CPN::VariantCPNLoader::GetKernelAttr().

99  {
100  growmaxthresh = enable;
101  return *this;
102  }

+ Here is the caller graph for this function:

bool CPN::KernelAttr::GrowQueueMaxThreshold ( ) const
inline

Definition at line 133 of file KernelAttr.h.

133 { return growmaxthresh; }
KernelAttr& CPN::KernelAttr::SetContext ( shared_ptr< Context ctx)
inline

Definition at line 79 of file KernelAttr.h.

Referenced by CPN::VariantCPNLoader::GetKernelAttr().

79  {
80  context = ctx;
81  return *this;
82  }
shared_ptr< Context > context
Definition: KernelAttr.h:144

+ Here is the caller graph for this function:

KernelAttr& CPN::KernelAttr::SetHostName ( const std::string &  hn)
inline

Definition at line 69 of file KernelAttr.h.

Referenced by CPN::VariantCPNLoader::GetKernelAttr().

69  {
70  hostname = hn;
71  return *this;
72  }
std::string hostname
Definition: KernelAttr.h:142

+ Here is the caller graph for this function:

KernelAttr& CPN::KernelAttr::SetName ( const std::string &  n)
inline

Definition at line 64 of file KernelAttr.h.

64  {
65  name = n;
66  return *this;
67  }
std::string name
Definition: KernelAttr.h:141
KernelAttr& CPN::KernelAttr::SetRemoteEnabled ( bool  en)
inline

Definition at line 84 of file KernelAttr.h.

84  {
85  remote_enabled = en;
86  return *this;
87  }
KernelAttr& CPN::KernelAttr::SetServName ( const std::string &  sn)
inline

Definition at line 74 of file KernelAttr.h.

Referenced by CPN::VariantCPNLoader::GetKernelAttr().

74  {
75  servname = sn;
76  return *this;
77  }
std::string servname
Definition: KernelAttr.h:143

+ Here is the caller graph for this function:

KernelAttr& CPN::KernelAttr::SwallowBrokenQueueExceptions ( bool  enable)
inline

Definition at line 94 of file KernelAttr.h.

Referenced by CPN::VariantCPNLoader::GetKernelAttr().

94  {
95  swallowbrokenqueue = enable;
96  return *this;
97  }
bool swallowbrokenqueue
Definition: KernelAttr.h:147

+ Here is the caller graph for this function:

bool CPN::KernelAttr::SwallowBrokenQueueExceptions ( ) const
inline

Definition at line 131 of file KernelAttr.h.

131 { return swallowbrokenqueue; }
bool swallowbrokenqueue
Definition: KernelAttr.h:147
KernelAttr& CPN::KernelAttr::UseD4R ( bool  enable)
inline

Definition at line 89 of file KernelAttr.h.

Referenced by CPN::VariantCPNLoader::GetKernelAttr().

89  {
90  useD4R = enable;
91  return *this;
92  }

+ Here is the caller graph for this function:

bool CPN::KernelAttr::UseD4R ( ) const
inline

Definition at line 129 of file KernelAttr.h.

129 { return useD4R; }

Member Data Documentation

shared_ptr<Context> CPN::KernelAttr::context
private

Definition at line 144 of file KernelAttr.h.

bool CPN::KernelAttr::growmaxthresh
private

Definition at line 148 of file KernelAttr.h.

std::string CPN::KernelAttr::hostname
private

Definition at line 142 of file KernelAttr.h.

std::string CPN::KernelAttr::name
private

Definition at line 141 of file KernelAttr.h.

std::vector<std::string> CPN::KernelAttr::nodelists
private

Definition at line 150 of file KernelAttr.h.

bool CPN::KernelAttr::remote_enabled
private

Definition at line 145 of file KernelAttr.h.

std::vector<std::string> CPN::KernelAttr::searchpaths
private

Definition at line 151 of file KernelAttr.h.

std::string CPN::KernelAttr::servname
private

Definition at line 143 of file KernelAttr.h.

std::vector<std::string> CPN::KernelAttr::sharedlibs
private

Definition at line 149 of file KernelAttr.h.

bool CPN::KernelAttr::swallowbrokenqueue
private

Definition at line 147 of file KernelAttr.h.

bool CPN::KernelAttr::useD4R
private

Definition at line 146 of file KernelAttr.h.


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