bamboo.sim
Class Network
java.lang.Object
bamboo.util.StandardStage
bamboo.sim.Network
- All Implemented Interfaces:
- EventHandlerIF, SingleThreadedEventHandlerIF
public class Network
- extends StandardStage
A network stage for simulated machines.
- Version:
- $Id: Network.java,v 1.6 2004/04/19 22:56:39 srhea Exp $
- Author:
- Sean C. Rhea
| Methods inherited from class bamboo.util.StandardStage |
BUG, BUG, BUG, config_get_boolean, config_get_double, config_get_int, config_get_string, configGetInt, destroy, dispatch, enqueue, handleEvents, lookup_stage, now_ms, timer_ms |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sinks
protected static Map sinks
logger
protected static org.apache.log4j.Logger logger
simulator
protected Simulator simulator
header_size
protected int header_size
ack_size
protected int ack_size
Network
public Network()
init
public void init(ConfigDataIF config)
throws Exception
- Specified by:
init in interface EventHandlerIF- Overrides:
init in class StandardStage
- Throws:
Exception
handleEvent
public void handleEvent(QueueElementIF item)
- Specified by:
handleEvent in interface EventHandlerIF- Overrides:
handleEvent in class StandardStage
msg_latency_us
protected static final long msg_latency_us(NetworkModel.RouteInfo ri,
int sz)
msg_latency_us
public static long msg_latency_us(ostore.util.NodeId a,
ostore.util.NodeId b,
int sz)
network_latency_us
public static long network_latency_us(ostore.util.NodeId a,
ostore.util.NodeId b)
route_info
protected static NetworkModel.RouteInfo route_info(ostore.util.NodeId a,
ostore.util.NodeId b)
handle_network_latency_req
protected void handle_network_latency_req(ostore.network.NetworkLatencyReq req)
handle_network_message
protected void handle_network_message(ostore.network.NetworkMessage msg)