|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanet.behaviour.BehaviourRoleSelectorImpl
public class BehaviourRoleSelectorImpl
BehaviourRoleSelectorImpl provides a default implementation for BehaviourRoleSelector interface The node's role can only be determined on behaviour's context. It uses the following several from behaviour properties file:
Constructor Summary | |
---|---|
BehaviourRoleSelectorImpl()
|
Method Summary | |
---|---|
java.util.Set |
select(java.util.Iterator network,
double percentage,
int distribution)
This methods selects malicious nodes from the overlay according to a percentage and distribution of them along the network. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BehaviourRoleSelectorImpl()
Method Detail |
---|
public java.util.Set select(java.util.Iterator network, double percentage, int distribution)
select
in interface BehaviourRoleSelector
network
- Iterator of all ids.percentage
- Percentage of faulty nodes.distribution
- Distribution's type of faulty nodes: chain or uniform.
java.lang.ClassCastException
- if network is not a collection of id's objects.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |