|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanet.generic.commonapi.behaviours.BehavioursRoleSelectorImpl
BehaviourRoleSelectorImpl provides a default implementation for BehaviourRoleSelector interface. The node's role can only be determined on behaviour's context. It uses the following behaviour properties file:
Constructor Summary | |
BehavioursRoleSelectorImpl()
|
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 BehavioursRoleSelectorImpl()
Method Detail |
public java.util.Set select(java.util.Iterator network, double percentage, int distribution)
select
in interface BehavioursRoleSelector
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 |