import kodkod.instance.Bounds; //导入方法依赖的package包/类

/**

* Returns an exact interpreter for the given bounds and options. If

* {@code incremental} is true, then the resulting interpreter

* can be {@linkplain #extend(Set, Map, Map) extended} with new bindings.

* Otherwise, the interpreter will throw an exception if extension is

* attempted.

*

* @return some l: LeafInterpreter | l.universe = bounds.universe &&

* l.relations = bounds.relations() && l.ints = bounds.ints() &&

* l.lbounds = bounds.lowerBound && l.ubounds = bounds.upperBound &&

* l.ibounds = bounds.intBound && l.factory =

* BooleanFactory.factory(sum(r: l.relations |

* #(l.ubounds[r]-l.lbounds[r]))-1, options) && l.vars[relations] =

* l.factory & BooleanVariable

*/

static final LeafInterpreter exact(Bounds bounds, Options options, boolean incremental) {

final Map vars = new LinkedHashMap();

final Map lowers = incremental ? new LinkedHashMap(bounds.lowerBounds())

: bounds.lowerBounds();

final Map uppers = incremental ? new LinkedHashMap(bounds.upperBounds())

: bounds.upperBounds();

final int numVars = allocateVars(1, vars, bounds.relations(), lowers, uppers);

return new LeafInterpreter(bounds.universe(), lowers, uppers, bounds.intBounds(),

BooleanFactory.factory(numVars, options), vars);

}

java bounds_Java Bounds.intBounds方法代码示例相关推荐

  1. java kryo_Kryo框架使用方法代码示例

    Kryo框架的source已移至https://github.com/EsotericSoftware/kryo ,进入此页面,然后点击右边的Download Zip按钮,就能下载到最新版本的Kryo ...

  2. java readtimeout_Java HttpURLConnection.getReadTimeout方法代码示例

    import java.net.HttpURLConnection; //导入方法依赖的package包/类 /** * 得到响应对象 * * @param urlConnection * @retu ...

  3. java invalidate_Java Component.invalidate方法代码示例

    import java.awt.Component; //导入方法依赖的package包/类 /** Installs the component we will embed to display t ...

  4. java hasmoreelements_Java IOException.hasMoreElements方法代码示例

    import java.io.IOException; //导入方法依赖的package包/类 /** * fileName���� ���� package �������� ������ ���� ...

  5. java methode_Java Method.getTypeParameters方法代码示例

    import java.lang.reflect.Method; //导入方法依赖的package包/类 private void validateRuleMethod(MethodRuleDefin ...

  6. java setmethod_Java Operation.setJavaMethod方法代码示例

    import com.sun.tools.internal.ws.processor.model.Operation; //导入方法依赖的package包/类 private void createJ ...

  7. java cancel_Java RunnableFuture.cancel方法代码示例

    import java.util.concurrent.RunnableFuture; //导入方法依赖的package包/类 @Test public void testSnapshotAsyncC ...

  8. java getevent_Java ActionEvent.getWhen方法代码示例

    import java.awt.event.ActionEvent; //导入方法依赖的package包/类 @Override final public void actionPerformed(A ...

  9. java deepcopy_Java JsonNode.deepCopy方法代码示例

    import com.fasterxml.jackson.databind.JsonNode; //导入方法依赖的package包/类 /** * Applies this schema rule t ...

  10. java setlayout_Java JLabel.setLayout方法代码示例

    import javax.swing.JLabel; //导入方法依赖的package包/类 private void initTitlePanel(){ preYear = new JLabel(& ...

最新文章

  1. jd-gui的下载和使用
  2. [唐诗]古风(其二十四)-李白
  3. 如何成为一位「不那么差」的程序员
  4. 【Python】函数的可变可选参数传递及返回值
  5. 正则表达式及测试工具
  6. 在linux中 要删除abc目录,操作系统原理与应用(linux)A卷
  7. azkaban的操作指南
  8. java 优化线程_Java | 多线程调优(下):如何优化多线程上下文切换?
  9. Linux系统NFS什么意思,挂载NFS到底是什么概念
  10. 苹果:今年没有5G iPhone 那就先来个5G版MacBook吧?
  11. LeetCode-9.回文数(大括号+双目运算符使用)
  12. 职高计算机专业c语言_重庆市职业高中计算机专业C语言试题
  13. Ubuntu 14.04安装 skype
  14. 解决pycharm下载第三方库速度慢的问题
  15. 共阳极数码管显示0~9_《显示器件应用分析精粹》之(3)数码管静态显示
  16. Android智能指针——读书笔记
  17. linux命令行怎么播放,在linux命令行里能听歌看电影吗
  18. 秋冬饮品研发没思路?带你看新品5大趋势!
  19. 一篇文章读懂:Spark运行模式
  20. 夏普电视显示服务器连线异常,夏普电视黑屏的原因?夏普电视常见故障!

热门文章

  1. python打印列表中指定元素的所有下标(5种方法)
  2. 如何关闭android键盘,软键盘怎么关?软键盘关闭方法
  3. Verilog编写VGA控制器
  4. python图标中文_解决python中matplotlib中文乱码 for Mac
  5. AMP—Rover移植
  6. 软件测试技术什么是分支覆盖,分支覆盖率测试是什么?
  7. ipad和iPhone尺寸和分辨率,点
  8. ModelSim 仿真常见问题及解决办法
  9. iOS 299美元企业账号申请流程及注意事项
  10. 微信小程序InnerAudioContext IOS真机无法播放声音