SST/macro
launcher.h
Go to the documentation of this file.
1 /*
2  * This file is part of SST/macroscale:
3  * The macroscale architecture simulator from the SST suite.
4  * Copyright (c) 2009 Sandia Corporation.
5  * This software is distributed under the BSD License.
6  * Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
7  * the U.S. Government retains certain rights in this software.
8  * For more information, see the LICENSE file in the top
9  * SST/macroscale directory.
10  */
11 
12 #ifndef SSTMAC_BACKENDS_NATIVE_LAUNCH_LAUNCHER_H_INCLUDED
13 #define SSTMAC_BACKENDS_NATIVE_LAUNCH_LAUNCHER_H_INCLUDED
14 
16 #include <sprockit/unordered.h>
17 
18 namespace sstmac {
19 namespace sw {
20 
21 /**
22  * A launcher that can be cooperatively scheduled by a very naive scheduler.
23  */
24 class launcher :
25  public service
26 {
27 
28  public:
29  launcher();
30 
31  virtual std::string
32  to_string() const {
33  return "launcher";
34  }
35 
36  /// Hasta la vista.
37  virtual ~launcher() throw ();
38 
39  virtual void
40  incoming_event(event* ev);
41 
42  virtual void
43  start();
44 
45  protected:
47 
48  spkt_unordered_map<app_id, int> num_apps_launched_;
49 };
50 
51 }
52 } // end of namespace sstmac
53 
54 #endif
55 
virtual ~launcher()
Hasta la vista.
virtual void incoming_event(event *ev)
virtual void start()
spkt_unordered_map< app_id, int > num_apps_launched_
Definition: launcher.h:48
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...
virtual std::string to_string() const
Definition: launcher.h:32
A launcher that can be cooperatively scheduled by a very naive scheduler.
Definition: launcher.h:24