SST/macro
simple_node.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_COMPONENTS_NODE_SIMPLENODE_H_INCLUDED
13 #define SSTMAC_BACKENDS_NATIVE_COMPONENTS_NODE_SIMPLENODE_H_INCLUDED
14 
18 
19 namespace sstmac {
20 namespace hw {
21 
22 /**
23  * A stand-in node. This node type passes all requests directly to
24  * the simulator and has no resource contention (infinite processors),
25  */
26 class simple_node :
27  public node
28 {
29  public:
30 #if SSTMAC_INTEGRATED_SST_CORE
32  SST::ComponentId_t id,
33  SST::Params& params);
34 
35  virtual void
36  init_sst_params(SST::Params &params);
37 #endif
38 
39  virtual ~simple_node();
40 
41  virtual void
42  finalize_init();
43 
44 
45  void
46  init_factory_params(sprockit::sim_parameters* params);
47 
48  virtual void
50  event* data,
51  callback* cb);
52 
53 #if !SSTMAC_INTEGRATED_SST_CORE
54  virtual void
56 #endif
57 
58 };
59 
61 
62 }
63 } // end of namespace sstmac
64 
65 #endif
66 
virtual void execute(ami::COMP_FUNC func, event *data, callback *cb)
Make the node execute a particular compute function.
virtual void set_event_manager(event_manager *man)
Set the eventmanager for this scheduler.
COMP_FUNC
Functions that block and must complete before returning.
Definition: ami.h:38
Base type for implementations of an engine that is able to schedule events and advance simulation tim...
Definition: event_manager.h:47
void init_factory_params(sprockit::sim_parameters *params)
Standard factory type initializer.
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...
A stand-in node.
Definition: simple_node.h:26
virtual void finalize_init()
Standard factory type initializer.
DeclareIntegratedComponent(simple_node)