|
Query Cycle Simulator HEADER | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Network interface.
| Field Summary | |
static int |
MAX_TTL
|
static int |
MED_TTL
|
static int |
MIN_TTL
|
| Method Summary | |
void |
goodPeers(int nodes,
int neighbors)
Adds good peers to the network. |
void |
highlyTrustedPeers(int nodes,
int neighbors)
Adds highly trusted peers to the network. |
void |
maliciousPeers(int nodes,
int neighbors)
Adds malicious peers to the network. |
int |
messages()
The number of messages transfered during a simulated cycle. |
double |
rpc(int dest,
PeerRPC cmd)
Peer remote procedure call interface |
void |
send(int dest,
PeerMessage msg)
Send a message to a peer. |
int |
trustValueRequests()
Total number of trust value request. |
| Field Detail |
public static final int MAX_TTL
public static final int MED_TTL
public static final int MIN_TTL
| Method Detail |
public int trustValueRequests()
public int messages()
public void send(int dest,
PeerMessage msg)
dest - destination peer id.msg - message to send.
public double rpc(int dest,
PeerRPC cmd)
dest - Peer to execute rpc command.cmd - command to execute.
public void goodPeers(int nodes,
int neighbors)
nodes - number of nodes in networkneighbors - initial number of neighbors for each peer
public void highlyTrustedPeers(int nodes,
int neighbors)
nodes - number of peers to be connectedneighbors - number of initial neighbors
public void maliciousPeers(int nodes,
int neighbors)
nodes - number of peers to be connectedneighbors - number of initial neighbors
|
Query Cycle Simulator HEADER | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||