|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface SortedRing
| Field Summary | |
|---|---|
static int |
NEXT
Successor direction in the ring |
static int |
PREV
Predecessor direction in the ring |
| Method Summary | |
|---|---|
peersim.core.Node |
getLeaf(int dir,
int i)
Return the i-th neighbor in the specified direction. |
int |
leafDegree()
Returns the number of neighbors in each direction. |
void |
setLeaf(int dir,
int i,
peersim.core.Node node)
Store a node as the i-th leaf in the specified direction. |
| Field Detail |
|---|
static final int PREV
static final int NEXT
| Method Detail |
|---|
peersim.core.Node getLeaf(int dir,
int i)
i-th neighbor in the specified direction.
dir - the direction in the ringi - the index of neighborhood, starting from 0
void setLeaf(int dir,
int i,
peersim.core.Node node)
i-th leaf in the specified direction.
dir - the direction in the ringi - the index of neighborhood, starting from 0node - the node to be storedint leafDegree()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||