Return true if this Resource is selected.
int passed = 0;
int failed = 0;
int count = selectorCount();
boolean even = count % 2 == 0;
int threshold = count / 2;
for (Iterator i = getSelectors(); i.hasNext();) {
if (((ResourceSelector) i.next()).isSelected(r)) {
++passed;
if (passed > threshold || (even && tie && passed == threshold)) {
return true;
}
} else {
++failed;
if (failed > threshold || (even && !tie && failed == threshold)) {
return false;
}
}
}
//dummy
return false;