public class Simulator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Simulator.Receiver |
Constructor and Description |
---|
Simulator() |
Modifier and Type | Method and Description |
---|---|
void |
addMember(Address addr) |
void |
addMember(Address addr,
Simulator s) |
java.lang.String |
dumpStats() |
void |
receive(Event evt) |
java.lang.Object |
send(Event evt) |
void |
setLocalAddress(Address addr) |
void |
setProtocolStack(Protocol[] stack) |
void |
setReceiver(Simulator.Receiver r) |
void |
setView(View v) |
void |
start() |
void |
stop() |
public void setProtocolStack(Protocol[] stack)
public java.lang.String dumpStats()
public void addMember(Address addr)
public void setLocalAddress(Address addr)
public void setView(View v)
public void setReceiver(Simulator.Receiver r)
public java.lang.Object send(Event evt)
public void receive(Event evt)
public void start() throws java.lang.Exception
java.lang.Exception
public void stop()
Copyright ? 1998-2008 Bela Ban. All Rights Reserved.