📄 abslecandidatesetbuilder.java
字号:
/**
* Description: For indices of elements in 'valueArray' that is not larger
* than the threshold value
*
* @ Author Create/Modi Note
* Xiaofeng Xie Dec 05, 2006
*
*
* @version 1.0
*/
package implement.common.behavior.elemPick.increment.candidateBuild;
import Global.basic.data.collection.*;
import Global.methods.*;
import maosKernel.behavior.*;
public abstract class AbsLECandidateSetBuilder extends AbsBehavior {
protected int[] orderArray;
public AbsLECandidateSetBuilder() {}
public void initValueArray(int[] valueArray) {
orderArray = BasicArray.getSortedIndices(valueArray);
}
abstract protected int getMaxWID(int thValue);
public void initCandidateSet(IDynamicICollectionEngine candidateIDs, IAlienICollectionEngine existingIDs, int thValue) {
candidateIDs.clear();
int maxWID = getMaxWID(thValue);
for (int i=0; i<maxWID; i++) {
if (existingIDs.getElementID(orderArray[i]) == -1) {
candidateIDs.addElement(orderArray[i]);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -