|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpeersim.dynamics.StarNI
public class StarNI
Initializes a node's neighbor list with a fixed center.
| Parameter Summary | |
|---|---|
protocol
The protocol to operate on. |
|
pack
If this config property is defined, method Linkable.pack() is
invoked on the specified protocol at the end of the wiring phase. |
|
| Field Summary | |
|---|---|
protected Node |
center
Used as center: nodes will link to this node. |
protected boolean |
pack
If true, method pack() is invoked on the initialized protocol |
protected int |
pid
The protocol we want to wire |
| Constructor Summary | |
|---|---|
StarNI(java.lang.String prefix)
|
|
| Method Summary | |
|---|---|
void |
initialize(Node n)
Adds a link to a fixed node, the center. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Parameter Detail |
|---|
protocol
packLinkable.pack() is
invoked on the specified protocol at the end of the wiring phase.
Default to false.
| Field Detail |
|---|
protected final int pid
protected final boolean pack
protected Node center
| Constructor Detail |
|---|
public StarNI(java.lang.String prefix)
| Method Detail |
|---|
public void initialize(Node n)
initialize in interface NodeInitializer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||