|
Appia Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.appia.core.Session
net.sf.appia.protocols.drop.DropSession
public class DropSession
Class DropSession randomly drops SendableEvents going down. Messages are droped randomly with the probability stated in the dropRate public attribute.
DropLayer
,
Session
,
SendableEvent
Field Summary | |
---|---|
static double |
dropRate
Probability of messages to be dropped. |
Fields inherited from class net.sf.appia.core.Session |
---|
layer |
Constructor Summary | |
---|---|
DropSession(DropLayer l)
|
Method Summary | |
---|---|
void |
handle(Event e)
This is the protocol's main event handler. |
Methods inherited from class net.sf.appia.core.Session |
---|
boundSessions, getId, getLayer, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static double dropRate
Constructor Detail |
---|
public DropSession(DropLayer l)
Session
Method Detail |
---|
public void handle(Event e)
handle
in class Session
e
- the event to handle.Session.handle(net.sf.appia.core.Event)
|
Appia Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |