cosi::Thread Class Reference

#include <Thread.h>

Inheritance diagram for cosi::Thread:

cosi::Quantity

List of all members.

Public Member Functions

 Thread ()
 Default constructor.
 ~Thread ()
 Default destructor.
Thread Get ()
 Returns this thread.
void Set (Thread pT)
 Sets this thread.
std::string GetThreadName () const
 Sets the name of this thread.
void SetThreadName (std::string pName)
 Gets the name of this thread.
std::string GetDestinationThreadName () const
 Sets the name of the destination thread.
void SetDestinationThreadName (std::string pName)
 Gets the name of the destination thread.
std::string GetDestinationNodeName () const
 Sets the name of the destination node.
void SetDestinationNodeName (std::string pName)
 Gets the name of the destination node.
int GetDestinationNodeId () const
 Sets the Id of the destination node.
void SetDestinationNodeId (int pId)
 Gets the id of the destination node.
double GetPeriod () const
 Gets the message period generated by the thread.
void SetPeriod (double pPeriod)
 Sets the message period generated by the thread.
int GetMessageLength () const
 Gets the length of the messages.
void SetMessageLength (int pMessageLength)
 Sets the length of the messages.
Threadoperator= (const Thread &pT)
bool operator< (const Thread &pT) const
bool operator== (const Thread &pT) const

Private Attributes

std::string mThreadName
 Thread name.
std::string mDestinationNodeName
 Name of the destination node.
int mDestId
 Id of the destination node.
std::string mDestinationThreadName
 Destination thread name.
double mPeriod
 Message period in seconds.
int mMsgLength
 Message length in bits.

Friends

std::ostream & operator<< (std::ostream &pOs, const Thread &pT)


Detailed Description

This class represents a thread. A thread has a name, the name of the destination node, the name of the destination thread, the period of the messages that the thread generates and their length in bit.

Author:
Alessandro Pinto,

The Donald O. Pederson Center for Electronic System Design

Electrical Engineering Department

University of California, Berkeley

545P Cory Hall, Berkeley, CA 94720

+1 (510) 642 9670

http://www.eecs.berkeley.edu/~apinto

Version:
Id
Thread.h,v 1.4 2008/08/21 23:37:13 apinto Exp

Constructor & Destructor Documentation

cosi::Thread::Thread (  ) 

Default constructor.

cosi::Thread::~Thread (  ) 

Default destructor.


Member Function Documentation

Thread cosi::Thread::Get (  ) 

Returns this thread.

void cosi::Thread::Set ( Thread  pT  ) 

Sets this thread.

std::string cosi::Thread::GetThreadName (  )  const

Sets the name of this thread.

void cosi::Thread::SetThreadName ( std::string  pName  ) 

Gets the name of this thread.

std::string cosi::Thread::GetDestinationThreadName (  )  const

Sets the name of the destination thread.

void cosi::Thread::SetDestinationThreadName ( std::string  pName  ) 

Gets the name of the destination thread.

std::string cosi::Thread::GetDestinationNodeName (  )  const

Sets the name of the destination node.

void cosi::Thread::SetDestinationNodeName ( std::string  pName  ) 

Gets the name of the destination node.

int cosi::Thread::GetDestinationNodeId (  )  const

Sets the Id of the destination node.

void cosi::Thread::SetDestinationNodeId ( int  pId  ) 

Gets the id of the destination node.

double cosi::Thread::GetPeriod (  )  const

Gets the message period generated by the thread.

void cosi::Thread::SetPeriod ( double  pPeriod  ) 

Sets the message period generated by the thread.

int cosi::Thread::GetMessageLength (  )  const

Gets the length of the messages.

void cosi::Thread::SetMessageLength ( int  pMessageLength  ) 

Sets the length of the messages.

Thread & cosi::Thread::operator= ( const Thread pT  ) 

bool cosi::Thread::operator< ( const Thread pT  )  const

bool cosi::Thread::operator== ( const Thread pT  )  const


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  pOs,
const Thread pT 
) [friend]


Member Data Documentation

std::string cosi::Thread::mThreadName [private]

Thread name.

std::string cosi::Thread::mDestinationNodeName [private]

Name of the destination node.

int cosi::Thread::mDestId [private]

Id of the destination node.

std::string cosi::Thread::mDestinationThreadName [private]

Destination thread name.

double cosi::Thread::mPeriod [private]

Message period in seconds.

int cosi::Thread::mMsgLength [private]

Message length in bits.


The documentation for this class was generated from the following files:
Generated on Sun Sep 7 18:37:46 2008 for COSI by  doxygen 1.5.4
Contact 
©2002-2018 U.C. Regents