本文整理匯總了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;
}
示例2: getSharingModel
import org.cpsolver.coursett.model.RoomSharingModel; //導入依賴的package包/類
public RoomSharingModel getSharingModel() {
return iRoomSharingModel;
}
示例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);
}