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

This is a simplified internal representation of the queue attributes needed to create a queue. This is for internal use only. More...

#include <QueueAttr.h>

+ Collaboration diagram for CPN::SimpleQueueAttr:

Public Member Functions

 SimpleQueueAttr ()
 
 SimpleQueueAttr (const QueueAttr &attr)
 
SimpleQueueAttrSetAlpha (double a)
 
SimpleQueueAttrSetMaxWriteThreshold (unsigned mwt)
 
SimpleQueueAttrSetHint (std::string hint)
 
SimpleQueueAttrSetDatatype (const std::string &type)
 
template<typename type >
SimpleQueueAttrSetDatatype ()
 
SimpleQueueAttrSetLength (unsigned length)
 
SimpleQueueAttrSetMaxThreshold (unsigned maxthresh)
 
SimpleQueueAttrSetNumChannels (unsigned numchans)
 
SimpleQueueAttrSetReaderNodeKey (Key_t k)
 
SimpleQueueAttrSetWriterNodeKey (Key_t k)
 
SimpleQueueAttrSetReaderKey (Key_t k)
 
SimpleQueueAttrSetWriterKey (Key_t k)
 
Key_t GetWriterNodeKey () const
 
Key_t GetReaderNodeKey () const
 
Key_t GetWriterKey () const
 
Key_t GetReaderKey () const
 
unsigned GetLength () const
 
unsigned GetMaxThreshold () const
 
unsigned GetNumChannels () const
 
std::string GetHint () const
 
const std::string & GetDatatype () const
 
double GetAlpha () const
 
unsigned GetMaxWriteThreshold () const
 

Private Attributes

std::string queuehint
 
std::string datatype
 
unsigned queueLength
 
unsigned maxThreshold
 
unsigned numChannels
 
double alpha
 
Key_t readerkey
 
Key_t writerkey
 
Key_t readernodekey
 
Key_t writernodekey
 
unsigned maxwritethreshold
 

Detailed Description

This is a simplified internal representation of the queue attributes needed to create a queue. This is for internal use only.

Definition at line 237 of file QueueAttr.h.

Constructor & Destructor Documentation

CPN::SimpleQueueAttr::SimpleQueueAttr ( )
inline

Definition at line 239 of file QueueAttr.h.

240  : queuehint(),
241  queueLength(0), maxThreshold(0),
242  numChannels(0), alpha(0.5),
244  {}
unsigned queueLength
Definition: QueueAttr.h:335
unsigned numChannels
Definition: QueueAttr.h:337
std::string queuehint
Definition: QueueAttr.h:333
unsigned maxThreshold
Definition: QueueAttr.h:336
unsigned maxwritethreshold
Definition: QueueAttr.h:343
CPN::SimpleQueueAttr::SimpleQueueAttr ( const QueueAttr attr)
inline

Definition at line 245 of file QueueAttr.h.

246  : queuehint(attr.GetHint()),
247  datatype(attr.GetDatatype()),
248  queueLength(attr.GetLength()),
249  maxThreshold(attr.GetMaxThreshold()),
250  numChannels(attr.GetNumChannels()),
251  alpha(attr.GetAlpha()),
252  readerkey(attr.GetReaderKey()),
253  writerkey(attr.GetWriterKey()),
254  readernodekey(attr.GetReaderNodeKey()),
255  writernodekey(attr.GetWriterNodeKey()),
256  maxwritethreshold(attr.GetMaxWriteThreshold())
257  {}
unsigned queueLength
Definition: QueueAttr.h:335
unsigned numChannels
Definition: QueueAttr.h:337
std::string queuehint
Definition: QueueAttr.h:333
unsigned maxThreshold
Definition: QueueAttr.h:336
std::string datatype
Definition: QueueAttr.h:334
unsigned maxwritethreshold
Definition: QueueAttr.h:343

Member Function Documentation

double CPN::SimpleQueueAttr::GetAlpha ( ) const
inline

Definition at line 330 of file QueueAttr.h.

References alpha.

Referenced by CPN::RemoteContextClient::SendQueueMsg().

330 { return alpha; }

+ Here is the caller graph for this function:

const std::string& CPN::SimpleQueueAttr::GetDatatype ( ) const
inline

Definition at line 329 of file QueueAttr.h.

References datatype.

Referenced by CPN::RemoteContextClient::SendQueueMsg().

329 { return datatype; }
std::string datatype
Definition: QueueAttr.h:334

+ Here is the caller graph for this function:

std::string CPN::SimpleQueueAttr::GetHint ( ) const
inline

Definition at line 328 of file QueueAttr.h.

References queuehint.

Referenced by CPN::Kernel::CreateLocalQueue(), CPN::Kernel::CreateReaderEndpoint(), CPN::Kernel::CreateWriterEndpoint(), and CPN::RemoteContextClient::SendQueueMsg().

328 { return queuehint; }
std::string queuehint
Definition: QueueAttr.h:333

+ Here is the caller graph for this function:

unsigned CPN::SimpleQueueAttr::GetLength ( ) const
inline

Definition at line 325 of file QueueAttr.h.

References queueLength.

Referenced by CPN::RemoteContextClient::SendQueueMsg(), and CPN::ThresholdQueue::ThresholdQueue().

325 { return queueLength; }
unsigned queueLength
Definition: QueueAttr.h:335

+ Here is the caller graph for this function:

unsigned CPN::SimpleQueueAttr::GetMaxThreshold ( ) const
inline

Definition at line 326 of file QueueAttr.h.

References maxThreshold.

Referenced by CPN::RemoteContextClient::SendQueueMsg(), and CPN::ThresholdQueue::ThresholdQueue().

326 { return maxThreshold; }
unsigned maxThreshold
Definition: QueueAttr.h:336

+ Here is the caller graph for this function:

unsigned CPN::SimpleQueueAttr::GetMaxWriteThreshold ( ) const
inline

Definition at line 331 of file QueueAttr.h.

References maxwritethreshold.

Referenced by CPN::RemoteContextClient::SendQueueMsg().

331 { return maxwritethreshold; }
unsigned maxwritethreshold
Definition: QueueAttr.h:343

+ Here is the caller graph for this function:

unsigned CPN::SimpleQueueAttr::GetNumChannels ( ) const
inline

Definition at line 327 of file QueueAttr.h.

References numChannels.

Referenced by CPN::RemoteContextClient::SendQueueMsg(), and CPN::ThresholdQueue::ThresholdQueue().

327 { return numChannels; }
unsigned numChannels
Definition: QueueAttr.h:337

+ Here is the caller graph for this function:

Key_t CPN::SimpleQueueAttr::GetReaderKey ( ) const
inline

Definition at line 324 of file QueueAttr.h.

References readerkey.

Referenced by CPN::Kernel::CreateQueue(), and CPN::RemoteContextClient::SendQueueMsg().

324 { return readerkey; }

+ Here is the caller graph for this function:

Key_t CPN::SimpleQueueAttr::GetReaderNodeKey ( ) const
inline

Definition at line 322 of file QueueAttr.h.

References readernodekey.

Referenced by CPN::Kernel::CreateLocalQueue(), CPN::Kernel::CreateQueue(), CPN::Kernel::CreateReaderEndpoint(), and CPN::RemoteContextClient::SendQueueMsg().

322 { return readernodekey; }

+ Here is the caller graph for this function:

Key_t CPN::SimpleQueueAttr::GetWriterKey ( ) const
inline

Definition at line 323 of file QueueAttr.h.

References writerkey.

Referenced by CPN::Kernel::CreateQueue(), and CPN::RemoteContextClient::SendQueueMsg().

323 { return writerkey; }

+ Here is the caller graph for this function:

Key_t CPN::SimpleQueueAttr::GetWriterNodeKey ( ) const
inline

Definition at line 321 of file QueueAttr.h.

References writernodekey.

Referenced by CPN::Kernel::CreateLocalQueue(), CPN::Kernel::CreateQueue(), CPN::Kernel::CreateWriterEndpoint(), and CPN::RemoteContextClient::SendQueueMsg().

321 { return writernodekey; }

+ Here is the caller graph for this function:

SimpleQueueAttr& CPN::SimpleQueueAttr::SetAlpha ( double  a)
inline

Definition at line 259 of file QueueAttr.h.

References alpha.

Referenced by CPN::MsgToQueueAttr().

259  {
260  alpha = a;
261  return *this;
262  }

+ Here is the caller graph for this function:

SimpleQueueAttr& CPN::SimpleQueueAttr::SetDatatype ( const std::string &  type)
inline

Definition at line 274 of file QueueAttr.h.

References datatype.

Referenced by CPN::MsgToQueueAttr().

274  {
275  datatype = type;
276  return *this;
277  }
std::string datatype
Definition: QueueAttr.h:334

+ Here is the caller graph for this function:

template<typename type >
SimpleQueueAttr& CPN::SimpleQueueAttr::SetDatatype ( )
inline

Definition at line 280 of file QueueAttr.h.

References datatype.

280  {
281  datatype = TypeName<type>();
282  return *this;
283  }
std::string datatype
Definition: QueueAttr.h:334
SimpleQueueAttr& CPN::SimpleQueueAttr::SetHint ( std::string  hint)
inline

Definition at line 269 of file QueueAttr.h.

References queuehint.

Referenced by CPN::MsgToQueueAttr().

269  {
270  queuehint = hint;
271  return *this;
272  }
std::string queuehint
Definition: QueueAttr.h:333

+ Here is the caller graph for this function:

SimpleQueueAttr& CPN::SimpleQueueAttr::SetLength ( unsigned  length)
inline

Definition at line 285 of file QueueAttr.h.

References queueLength.

Referenced by CPN::MsgToQueueAttr().

285  {
286  queueLength = length;
287  return *this;
288  }
unsigned queueLength
Definition: QueueAttr.h:335

+ Here is the caller graph for this function:

SimpleQueueAttr& CPN::SimpleQueueAttr::SetMaxThreshold ( unsigned  maxthresh)
inline

Definition at line 290 of file QueueAttr.h.

References maxThreshold.

Referenced by CPN::MsgToQueueAttr().

290  {
291  maxThreshold = maxthresh;
292  return *this;
293  }
unsigned maxThreshold
Definition: QueueAttr.h:336

+ Here is the caller graph for this function:

SimpleQueueAttr& CPN::SimpleQueueAttr::SetMaxWriteThreshold ( unsigned  mwt)
inline

Definition at line 264 of file QueueAttr.h.

References maxwritethreshold.

Referenced by CPN::MsgToQueueAttr().

264  {
265  maxwritethreshold = mwt;
266  return *this;
267  }
unsigned maxwritethreshold
Definition: QueueAttr.h:343

+ Here is the caller graph for this function:

SimpleQueueAttr& CPN::SimpleQueueAttr::SetNumChannels ( unsigned  numchans)
inline

Definition at line 295 of file QueueAttr.h.

References numChannels.

Referenced by CPN::MsgToQueueAttr().

295  {
296  numChannels = numchans;
297  return *this;
298  }
unsigned numChannels
Definition: QueueAttr.h:337

+ Here is the caller graph for this function:

SimpleQueueAttr& CPN::SimpleQueueAttr::SetReaderKey ( Key_t  k)
inline

Definition at line 310 of file QueueAttr.h.

References readerkey.

Referenced by CPN::Kernel::CreateQueue(), and CPN::MsgToQueueAttr().

310  {
311  readerkey = k;
312  return *this;
313  }

+ Here is the caller graph for this function:

SimpleQueueAttr& CPN::SimpleQueueAttr::SetReaderNodeKey ( Key_t  k)
inline

Definition at line 300 of file QueueAttr.h.

References readernodekey.

Referenced by CPN::Kernel::CreateQueue(), and CPN::MsgToQueueAttr().

300  {
301  readernodekey = k;
302  return *this;
303  }

+ Here is the caller graph for this function:

SimpleQueueAttr& CPN::SimpleQueueAttr::SetWriterKey ( Key_t  k)
inline

Definition at line 315 of file QueueAttr.h.

References writerkey.

Referenced by CPN::Kernel::CreateQueue(), and CPN::MsgToQueueAttr().

315  {
316  writerkey = k;
317  return *this;
318  }

+ Here is the caller graph for this function:

SimpleQueueAttr& CPN::SimpleQueueAttr::SetWriterNodeKey ( Key_t  k)
inline

Definition at line 305 of file QueueAttr.h.

References writernodekey.

Referenced by CPN::Kernel::CreateQueue(), and CPN::MsgToQueueAttr().

305  {
306  writernodekey = k;
307  return *this;
308  }

+ Here is the caller graph for this function:

Member Data Documentation

double CPN::SimpleQueueAttr::alpha
private

Definition at line 338 of file QueueAttr.h.

Referenced by GetAlpha(), and SetAlpha().

std::string CPN::SimpleQueueAttr::datatype
private

Definition at line 334 of file QueueAttr.h.

Referenced by GetDatatype(), and SetDatatype().

unsigned CPN::SimpleQueueAttr::maxThreshold
private

Definition at line 336 of file QueueAttr.h.

Referenced by GetMaxThreshold(), and SetMaxThreshold().

unsigned CPN::SimpleQueueAttr::maxwritethreshold
private

Definition at line 343 of file QueueAttr.h.

Referenced by GetMaxWriteThreshold(), and SetMaxWriteThreshold().

unsigned CPN::SimpleQueueAttr::numChannels
private

Definition at line 337 of file QueueAttr.h.

Referenced by GetNumChannels(), and SetNumChannels().

std::string CPN::SimpleQueueAttr::queuehint
private

Definition at line 333 of file QueueAttr.h.

Referenced by GetHint(), and SetHint().

unsigned CPN::SimpleQueueAttr::queueLength
private

Definition at line 335 of file QueueAttr.h.

Referenced by GetLength(), and SetLength().

Key_t CPN::SimpleQueueAttr::readerkey
private

Definition at line 339 of file QueueAttr.h.

Referenced by GetReaderKey(), and SetReaderKey().

Key_t CPN::SimpleQueueAttr::readernodekey
private

Definition at line 341 of file QueueAttr.h.

Referenced by GetReaderNodeKey(), and SetReaderNodeKey().

Key_t CPN::SimpleQueueAttr::writerkey
private

Definition at line 340 of file QueueAttr.h.

Referenced by GetWriterKey(), and SetWriterKey().

Key_t CPN::SimpleQueueAttr::writernodekey
private

Definition at line 342 of file QueueAttr.h.

Referenced by GetWriterNodeKey(), and SetWriterNodeKey().


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