本文整理汇总了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);
}