本文整理汇总了Java中edacc.model.ExperimentResult.getSolverConfigId方法的典型用法代码示例。如果您正苦于以下问题:Java ExperimentResult.getSolverConfigId方法的具体用法?Java ExperimentResult.getSolverConfigId怎么用?Java ExperimentResult.getSolverConfigId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类edacc.model.ExperimentResult
的用法示例。
在下文中一共展示了ExperimentResult.getSolverConfigId方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: calculateProperty
import edacc.model.ExperimentResult; //导入方法依赖的package包/类
@Override
public String calculateProperty(int instanceId) throws Exception {
float minTime = Float.MAX_VALUE;
int scid = -1;
for (ExperimentResult er : ExperimentResultDAO.getAllByInstanceId(instanceId)) {
if (expId != null && er.getExperimentId() != expId) {
continue;
}
if (er.getResultCode().isCorrect()) {
if (er.getResultTime() < minTime) {
minTime = er.getResultTime();
scid = er.getSolverConfigId();
}
}
}
if (scid == -1) {
return "";
} else {
SolverConfiguration sc = SolverConfigurationDAO.getSolverConfigurationById(scid);
return sc.getName() + " (" + sc.getId() + ")";
}
}
示例2: ExperimentResultWrapper
import edacc.model.ExperimentResult; //导入方法依赖的package包/类
public ExperimentResultWrapper(ExperimentResult er, int priority) {
// we have to fill run, solverconfig id, experiment id, instance id fields for equals method!
super(er.getRun(), 0, 0, null, 0, null, 0.f, 0.f, 0.f, er.getSolverConfigId(), er.getExperimentId(), er.getInstanceId(), null, 0, 0, 0, 0);
this.er = er;
this.status = StatusCode.NOT_STARTED;
this.priority = priority;
this.creationTime = currentTime; // System.currentTimeMillis();
this.startTime = 0;
}
示例3: getResults
import edacc.model.ExperimentResult; //导入方法依赖的package包/类
/**
* Returns all experiment result with the specified solver config id.<br/>
* updateExperimentResults() should be called first.
* @param idSolverConfig
* @return List of experiment results for the solver config id
*/
public synchronized List<ExperimentResult> getResults(int idSolverConfig) {
ArrayList<ExperimentResult> res = new ArrayList<ExperimentResult>();
for (ExperimentResult er : resultMap.values()) {
if (er.getSolverConfigId() == idSolverConfig) {
res.add(er);
}
}
return res;
}