00001 #ifndef __COMPONENT_H__ 00002 #define __COMPONENT_H__ 00003 00004 #include <vector> 00005 #include "simulator.h" 00006 #include "link.h" 00007 00008 00009 //class Simulator; 00010 00011 class Component 00012 { 00013 private: 00014 int componentId; 00015 public: 00016 std::vector<Link*> inLinks; 00017 std::vector<Link*> outLinks; 00018 Component(); 00019 Component(int lpId); 00020 ~Component(); 00021 void setComponentId(int id); 00022 void addInputLink(Link* l); 00023 void addOutputLink(Link* l); 00024 int myId(){return componentId;} 00025 }; 00026 00027 00028 #endif