00001 /* 00002 * ===================================================================================== 00003 * 00004 * Filename: interface.cc 00005 * 00006 * Description: 00007 * 00008 * Version: 1.0 00009 * Created: 02/19/2010 01:43:03 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 _interface_cc_INC 00019 #define _interface_cc_INC 00020 00021 #include "interface.h" 00022 using namespace std; 00023 00024 /* 00025 *-------------------------------------------------------------------------------------- 00026 * Class: Interface 00027 * Method: Interface 00028 * Description: constructor 00029 *-------------------------------------------------------------------------------------- 00030 */ 00031 Interface::Interface () 00032 { 00033 address = 0; 00034 type = NetworkComponent::interface; 00035 } /* ----- end of method Interface::Interface (constructor) ----- */ 00036 00037 Interface::~Interface () 00038 { 00039 } /* ----- end of function Interface::~Interface ----- */ 00040 00041 string 00042 Interface::toString () const 00043 { 00044 stringstream str; 00045 str << "Interface" 00046 << "\tAddr: " << address 00047 << "\t input_connection: " << input_connection 00048 << "\t output_connection: " << output_connection 00049 << "\t processor_connection: "<< processor_connection->toString() 00050 << endl; 00051 return str.str(); 00052 } /* ----- end of method Interface::toString ----- */ 00053 00054 #endif /* ----- #ifndef _interface_cc_INC ----- */ 00055