00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef _SST_STOPACTION_H
00014 #define _SST_STOPACTION_H
00015
00016 #include <sst/core/action.h>
00017
00018 namespace SST {
00019
00020 class StopAction : public Action
00021 {
00022 public:
00023 StopAction() {
00024 setPriority(1);
00025 }
00026
00027 void execute() {
00028 endSimulation();
00029 }
00030
00031 friend class boost::serialization::access;
00032 template<class Archive>
00033 void
00034 serialize(Archive & ar, const unsigned int version )
00035 {
00036 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Action);
00037 }
00038 };
00039
00040 }
00041
00042 #endif