00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef _EVENT_TEST_H
00014 #define _EVENT_TEST_H
00015
00016 #include <sst/core/event.h>
00017 #include <sst/core/component.h>
00018 #include <sst/core/link.h>
00019 #include <sst/core/timeConverter.h>
00020
00021 class event_test : public SST::Component {
00022 public:
00023 event_test( SST::ComponentId_t id, SST::Component::Params_t& params );
00024
00025 int Setup();
00026 int Finish() {
00027 return 0;
00028 }
00029
00030 private:
00031 event_test() { }
00032
00033 int my_id;
00034 int count_to;
00035 int latency;
00036 bool done;
00037
00038 SST::Link* link;
00039
00040 bool handleEvent( SST::Event *ev );
00041
00042 friend class boost::serialization::access;
00043 template<class Archive>
00044 void serialize(Archive & ar, const unsigned int version )
00045 {
00046 boost::serialization::base_object<Component>(*this);
00047 ar & BOOST_SERIALIZATION_NVP(my_id);
00048 ar & BOOST_SERIALIZATION_NVP(count_to);
00049 ar & BOOST_SERIALIZATION_NVP(latency);
00050 ar & BOOST_SERIALIZATION_NVP(done);
00051 }
00052 };
00053
00054 #endif