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


Java RoomSharingModel类代码示例

本文整理汇总了Java中org.cpsolver.coursett.model.RoomSharingModel的典型用法代码示例。如果您正苦于以下问题:Java RoomSharingModel类的具体用法?Java RoomSharingModel怎么用?Java RoomSharingModel使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


RoomSharingModel类属于org.cpsolver.coursett.model包,在下文中一共展示了RoomSharingModel类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: RoomConstraint

import org.cpsolver.coursett.model.RoomSharingModel; //导入依赖的package包/类
/**
 * Constructor
 * @param id room unique id
 * @param name room name
 * @param buildingId building unique id
 * @param capacity room size
 * @param roomSharingModel room sharing model
 * @param x X-coordinate (latitude)
 * @param y Y-coordinate (longitude)
 * @param ignoreTooFar ignore distances if set to true
 * @param constraint hard constraint if true (classes cannot overlap in this room)
 */
public RoomConstraint(Long id, String name, Long buildingId, int capacity, RoomSharingModel roomSharingModel,
        Double x, Double y, boolean ignoreTooFar, boolean constraint) {
    iResourceId = id;
    iName = name;
    iBuildingId = buildingId;
    iCapacity = capacity;
    iConstraint = constraint;
    iRoomSharingModel = roomSharingModel;
    iPosX = x;
    iPosY = y;
    iIgnoreTooFar = ignoreTooFar;
}
 
开发者ID:UniTime,项目名称:cpsolver,代码行数:25,代码来源:RoomConstraint.java

示例2: getSharingModel

import org.cpsolver.coursett.model.RoomSharingModel; //导入依赖的package包/类
public RoomSharingModel getSharingModel() {
    return iRoomSharingModel;
}
 
开发者ID:UniTime,项目名称:cpsolver,代码行数:4,代码来源:RoomConstraint.java

示例3: DiscouragedRoomConstraint

import org.cpsolver.coursett.model.RoomSharingModel; //导入依赖的package包/类
public DiscouragedRoomConstraint(DataProperties config, Long id, String name, Long buildingId, int capacity,
        RoomSharingModel roomSharingModel, Double x, Double y, boolean ignoreTooFar, boolean constraint) {
    super(id, name, buildingId, capacity, roomSharingModel, x, y, ignoreTooFar, constraint);
    iUnassignmentsToWeaken = config.getPropertyInt("DiscouragedRoom.Unassignments2Weaken", iUnassignmentsToWeaken);
}
 
开发者ID:UniTime,项目名称:cpsolver,代码行数:6,代码来源:DiscouragedRoomConstraint.java


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