1 #ifndef SIMPLE_SWITCH_H 2 #define SIMPLE_SWITCH_H 42 std::vector<switch_id>
52 #if !SSTMAC_INTEGRATED_SST_CORE 59 return "simple switch";
115 spkt_unordered_map<node_id, nic*>
nics_;
127 #endif // SIMPLE_SWITCH_H
virtual void finalize_init()
A class describing an event.
double hop_bandwidth() const
spkt_unordered_map< node_id, nic * > nics_
virtual void init_factory_params(sprockit::sim_parameters *params)
int queue_length(int port) const
virtual void connect_input(int src_outport, int dst_inport, connectable *mod, config *cfg)
Base type for implementations of an engine that is able to schedule events and advance simulation tim...
virtual std::string to_string() const
virtual void connect_ejector(int src_outport, int dst_inport, event_handler *nic)
virtual void connect_output(int src_outport, int dst_inport, connectable *mod, config *cfg)
virtual void initialize()
virtual void handle(event *ev)
Cast message and pass to #send.
void send_to_switch(timestamp delay, node_id dst, message *msg)
The main interface for something that can respond to an event (sst_message).
void send_to_nic(timestamp delay, node_id dst, message *msg)
std::vector< switch_id > connected_switches() const
A basic container for time (subject to future transplant).
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...
A networkinterface is a delegate between a node and a server module.
timestamp lookahead() const
timestamp hop_latency() const
double inverse_bw() const
void set_topology(topology *top)
void add_switch(connectable *sw)
spkt_unordered_map< node_id, network_switch * > neighbors_
virtual void set_event_manager(event_manager *m)
virtual void connect_injector(int src_outport, int dst_inport, event_handler *nic)