1 #ifndef PACKET_FLOW_MEMORY_MODEL_H 2 #define PACKET_FLOW_MEMORY_MODEL_H 35 return "memory message";
67 return "packet flow memory model";
71 recv_credit(packet_flow_credit* credit);
77 init_factory_params(sprockit::sim_parameters* params);
81 void inject(
int vn,
long bytes,
long byte_offset,
message *
payload);
89 handle_payload(
int vn, packet_flow_payload* pkt);
126 init_factory_params(sprockit::sim_parameters* params);
130 memory_model::schedule(t, handler, msg);
133 void notify(
int vn,
message* msg);
140 return max_single_bw_;
144 int allocate_channel();
159 #endif // PACKET_FLOW_MEMORY_MODEL_H
A class describing an event.
The packet_allocator class Factory for creating packets.
std::string to_string() const
double max_single_bw() const
void recv_packet(packet_flow_payload *pkt)
The main interface for something that can respond to an event (sst_message).
std::list< int > channels_available_
noise_model * interval_noise_
bool spaceToSend(int vn, int num_bits) 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...
uint64_t unique_id() const
The interface for something that can schedule messages.
void schedule(timestamp t, event_handler *handler, message *msg)
long byte_length() const
Virtual function to return size.
std::map< message *, callback * > pending_requests_
packet_flow_memory_packetizer * mem_packetizer_
packet_allocator * pkt_allocator_
NotSerializable(memory_message) public
std::string packet_flow_name() const
packet_flow_memory_model(node *nd)
packet_flow_bandwidth_arbitrator * arb_