00001 /* 00002 * ===================================================================================== 00003 * 00004 * Filename: networkComponent.cc 00005 * 00006 * Description: 00007 * 00008 * Version: 1.0 00009 * Created: 02/19/2010 01:48:50 AM 00010 * Revision: none 00011 * Compiler: gcc 00012 * 00013 * Author: Mitchelle Rasquinha (), mitchelle.rasquinha@gatech.edu 00014 * Company: Georgia Institute of Technology 00015 * 00016 * ===================================================================================== 00017 */ 00018 #ifndef _networkcomponent_cc_INC 00019 #define _networkcomponent_cc_INC 00020 00021 #include "networkComponent.h" 00022 /* 00023 *-------------------------------------------------------------------------------------- 00024 * Class: NetworkComponent 00025 * Method: NetworkComponent 00026 * Description: constructor 00027 *-------------------------------------------------------------------------------------- 00028 */ 00029 NetworkComponent::NetworkComponent () 00030 { 00031 /* For now component writers are meant to set the id of the base 00032 * component class and i use that for the address. May want to check this 00033 * after discussions on what the component id is meant for. */ 00034 address = myId(); 00035 00036 } /* ----- end of method NetworkComponent::NetworkComponent (constructor) ----- */ 00037 00038 NetworkComponent::~NetworkComponent () 00039 { 00040 } /* ----- end of function NetworkComponent::~NetworkComponent ----- */ 00041 00042 string 00043 NetworkComponent::toString () const 00044 { 00045 stringstream str; 00046 str << "NetworkComponent: " 00047 << "\t address: " << address 00048 << "\t type: " << type 00049 << endl; 00050 return str.str(); 00051 } /* ----- end of method NetworkComponent::toString ----- */ 00052 00053 #endif /* ----- #ifndef _networkcomponent_cc_INC ----- */