當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。