当前位置: 首页>>代码示例>>Java>>正文


Java OverExpectedCriterion类代码示例

本文整理汇总了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());
       }
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:11,代码来源:AbstractServer.java

示例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);
    }
}
 
开发者ID:UniTime,项目名称:cpsolver,代码行数:13,代码来源:OnlineSectioningModel.java

示例3: getOverExpectedCriterion

import org.cpsolver.studentsct.online.expectations.OverExpectedCriterion; //导入依赖的package包/类
@Override
public OverExpectedCriterion getOverExpectedCriterion() {
	return new NeverOverExpected(getConfig());
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:5,代码来源:StudentSolver.java

示例4: getOverExpectedCriterion

import org.cpsolver.studentsct.online.expectations.OverExpectedCriterion; //导入依赖的package包/类
/**
 * Get over-expected criterion
 * @return over-expected criterion
 */
public OverExpectedCriterion getOverExpectedCriterion() { return iOverExpectedCriterion; }
 
开发者ID:UniTime,项目名称:cpsolver,代码行数:6,代码来源:OnlineSectioningModel.java

示例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; }
 
开发者ID:UniTime,项目名称:cpsolver,代码行数:6,代码来源:OnlineSectioningModel.java

示例6: getOverExpectedCriterion

import org.cpsolver.studentsct.online.expectations.OverExpectedCriterion; //导入依赖的package包/类
public OverExpectedCriterion getOverExpectedCriterion(); 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:2,代码来源:OnlineSectioningServer.java


注:本文中的org.cpsolver.studentsct.online.expectations.OverExpectedCriterion类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。