|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgps.protocol.BT.algorithm.BTAlgorithmOptimisticUnchoking
public class BTAlgorithmOptimisticUnchoking
BT optimistic unchoking algorithm.
| Field Summary | |
|---|---|
static int |
DEFAULT_OPTIMISTIC_UNCHOKING_INTERVAL
default optimistic unchoking interval |
static int |
DEFAULT_SNUBBING_DETECT_INTERVAL
default snubbing detect interval |
static int |
DEFAULT_SNUBBING_UNCHOKE_NUM
default snubbing unchoke number |
| Constructor Summary | |
|---|---|
BTAlgorithmOptimisticUnchoking(BTSession session)
constructs optimistic unchoking algorithm object |
|
BTAlgorithmOptimisticUnchoking(BTSession session,
int i1,
int i2)
constructs optimistic unchoking algorithm object |
|
| Method Summary | |
|---|---|
boolean |
handle(SimEvent e)
handles optimistic unchoking events |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int DEFAULT_OPTIMISTIC_UNCHOKING_INTERVAL
public static int DEFAULT_SNUBBING_DETECT_INTERVAL
public static int DEFAULT_SNUBBING_UNCHOKE_NUM
| Constructor Detail |
|---|
public BTAlgorithmOptimisticUnchoking(BTSession session)
session - the session this optimistic unchoking is working for
public BTAlgorithmOptimisticUnchoking(BTSession session,
int i1,
int i2)
session - the session this optimistic unchoking is working fori1 - optimistic unchoking intervali2 - snubbing detect interval| Method Detail |
|---|
public boolean handle(SimEvent e)
handle in interface SimEventHandlere - optimistic unchoking event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||