本文整理汇总了Java中org.cpsolver.studentsct.online.expectations.OverExpectedCriterion类的典型用法代码示例。如果您正苦于以下问题:Java OverExpectedCriterion类的具体用法?Java OverExpectedCriterion怎么用?Java OverExpectedCriterion使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
OverExpectedCriterion类属于org.cpsolver.studentsct.online.expectations包,在下文中一共展示了OverExpectedCriterion类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getOverExpectedCriterion
import org.cpsolver.studentsct.online.expectations.OverExpectedCriterion; //导入依赖的package包/类
@Override
public OverExpectedCriterion getOverExpectedCriterion() {
try {
Class<OverExpectedCriterion> overExpectedCriterionClass = (Class<OverExpectedCriterion>)Class.forName(getConfig().getProperty("OverExpectedCriterion.Class", AvoidUnbalancedWhenNoExpectations.class.getName()));
return overExpectedCriterionClass.getConstructor(DataProperties.class).newInstance(getConfig());
} catch (Exception e) {
iLog.error("Unable to create custom over-expected criterion (" + e.getMessage() + "), using default.", e);
return new AvoidUnbalancedWhenNoExpectations(getConfig());
}
}
示例2: OnlineSectioningModel
import org.cpsolver.studentsct.online.expectations.OverExpectedCriterion; //导入依赖的package包/类
public OnlineSectioningModel(DataProperties properties) {
super(properties);
try {
@SuppressWarnings("unchecked")
Class<OverExpectedCriterion> overExpectedCriterionClass = (Class<OverExpectedCriterion>)
Class.forName(properties.getProperty("OverExpectedCriterion.Class", AvoidUnbalancedWhenNoExpectations.class.getName()));
iOverExpectedCriterion = overExpectedCriterionClass.getConstructor(DataProperties.class).newInstance(properties);
} catch (Exception e) {
sLog.error("Unable to create custom over-expected criterion (" + e.getMessage() + "), using default.", e);
iOverExpectedCriterion = new PercentageOverExpected(properties);
}
}
示例3: getOverExpectedCriterion
import org.cpsolver.studentsct.online.expectations.OverExpectedCriterion; //导入依赖的package包/类
@Override
public OverExpectedCriterion getOverExpectedCriterion() {
return new NeverOverExpected(getConfig());
}
示例4: getOverExpectedCriterion
import org.cpsolver.studentsct.online.expectations.OverExpectedCriterion; //导入依赖的package包/类
/**
* Get over-expected criterion
* @return over-expected criterion
*/
public OverExpectedCriterion getOverExpectedCriterion() { return iOverExpectedCriterion; }
示例5: setOverExpectedCriterion
import org.cpsolver.studentsct.online.expectations.OverExpectedCriterion; //导入依赖的package包/类
/**
* Set over-expected criterion
* @param overExpectedCriterion over-expected criterion
*/
public void setOverExpectedCriterion(OverExpectedCriterion overExpectedCriterion) { iOverExpectedCriterion = overExpectedCriterion; }
示例6: getOverExpectedCriterion
import org.cpsolver.studentsct.online.expectations.OverExpectedCriterion; //导入依赖的package包/类
public OverExpectedCriterion getOverExpectedCriterion();