1 #ifndef PACKETFLOW_CREDITOR_H 2 #define PACKETFLOW_CREDITOR_H 11 #define packet_flow_debug(...) \ 12 debug_printf(sprockit::dbg::packet_flow, __VA_ARGS__) 44 pkt->set_arrival(
now().sec());
88 packet_flow_payload* pkt,
112 #endif // PACKETFLOW_CREDITOR_H timestamp now() const
get the current time
void set_event_location(node_id nid)
virtual void set_input(int my_inport, int dst_outport, event_handler *input)=0
void set_stat_collector(packet_sent_stats *c)
virtual void init_credits(int port, int num_credits)=0
void init_loc_id(event_loc_id id)
void set_event_location(switch_id sid)
virtual std::string packet_flow_name() const =0
packet_sent_stats * stat_collector_
The main interface for something that can respond to an event (sst_message).
void set_acker(event_handler *acker)
A basic container for time (subject to future transplant).
void handle_payload(packet_flow_payload *pkt)
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...
void set_update_vc(bool flag)
virtual int num_initial_credits() const =0
void send_credit(const packet_flow_input &src, packet_flow_payload *payload, timestamp packet_tail_leaves)
void send(packet_flow_bandwidth_arbitrator *arb, packet_flow_payload *pkt, const packet_flow_input &src, const packet_flow_output &dest)
virtual void do_handle_payload(packet_flow_payload *pkt)=0
virtual ~packet_flow_sender()
virtual void set_output(int my_outport, int dst_inport, event_handler *output)=0
std::string to_string() const