|
Query Cycle Simulator HEADER | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Creates and manage all peers in a simulation.
| Field Summary | |
static int |
MC_CHAIN
|
static int |
MC_CLIQUE
|
static int |
MC_RANDOM
|
| Method Summary | |
void |
collective(java.util.Vector peers,
int collective,
int type)
Create a collective. |
void |
contentManager(PeerContentManager manager)
Set the peer content manager |
void |
deletePeer(int peerID)
Removes peer from the system. |
int |
goodPeers()
Get the number of good peers in the system. |
int |
highlyTrustedPeers()
Get the number of highly trusted peers in the system. |
int |
maliciousPeers()
Get the number of malicious peers in the system. |
Peer |
newPeer(NetworkSimulator network,
int behavior)
Create a new peer |
Peer |
peer(int peerID)
Get peer |
int |
peers()
Number of peers in the system. |
| Field Detail |
public static final int MC_CLIQUE
public static final int MC_CHAIN
public static final int MC_RANDOM
| Method Detail |
public int peers()
public Peer peer(int peerID)
peerID - the peer id.
public Peer newPeer(NetworkSimulator network,
int behavior)
behavior - the peer's behavior/type
public void deletePeer(int peerID)
peerID - the peer id.public int highlyTrustedPeers()
public int maliciousPeers()
public int goodPeers()
public void contentManager(PeerContentManager manager)
manager - the peer content manager.
public void collective(java.util.Vector peers,
int collective,
int type)
peers - Vector of peerIDs who will be in the collectivecollective - The type of collective to create.type - The type of trust value configuration.
|
Query Cycle Simulator HEADER | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||