java bounds_Java Bounds.intBounds方法代码示例
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方法代码示例相关推荐
- java kryo_Kryo框架使用方法代码示例
Kryo框架的source已移至https://github.com/EsotericSoftware/kryo ,进入此页面,然后点击右边的Download Zip按钮,就能下载到最新版本的Kryo ...
- java readtimeout_Java HttpURLConnection.getReadTimeout方法代码示例
import java.net.HttpURLConnection; //导入方法依赖的package包/类 /** * 得到响应对象 * * @param urlConnection * @retu ...
- java invalidate_Java Component.invalidate方法代码示例
import java.awt.Component; //导入方法依赖的package包/类 /** Installs the component we will embed to display t ...
- java hasmoreelements_Java IOException.hasMoreElements方法代码示例
import java.io.IOException; //导入方法依赖的package包/类 /** * fileName���� ���� package �������� ������ ���� ...
- java methode_Java Method.getTypeParameters方法代码示例
import java.lang.reflect.Method; //导入方法依赖的package包/类 private void validateRuleMethod(MethodRuleDefin ...
- java setmethod_Java Operation.setJavaMethod方法代码示例
import com.sun.tools.internal.ws.processor.model.Operation; //导入方法依赖的package包/类 private void createJ ...
- java cancel_Java RunnableFuture.cancel方法代码示例
import java.util.concurrent.RunnableFuture; //导入方法依赖的package包/类 @Test public void testSnapshotAsyncC ...
- java getevent_Java ActionEvent.getWhen方法代码示例
import java.awt.event.ActionEvent; //导入方法依赖的package包/类 @Override final public void actionPerformed(A ...
- java deepcopy_Java JsonNode.deepCopy方法代码示例
import com.fasterxml.jackson.databind.JsonNode; //导入方法依赖的package包/类 /** * Applies this schema rule t ...
- java setlayout_Java JLabel.setLayout方法代码示例
import javax.swing.JLabel; //导入方法依赖的package包/类 private void initTitlePanel(){ preYear = new JLabel(& ...
最新文章
- jd-gui的下载和使用
- [唐诗]古风(其二十四)-李白
- 如何成为一位「不那么差」的程序员
- 【Python】函数的可变可选参数传递及返回值
- 正则表达式及测试工具
- 在linux中 要删除abc目录,操作系统原理与应用(linux)A卷
- azkaban的操作指南
- java 优化线程_Java | 多线程调优(下):如何优化多线程上下文切换?
- Linux系统NFS什么意思,挂载NFS到底是什么概念
- 苹果:今年没有5G iPhone 那就先来个5G版MacBook吧?
- LeetCode-9.回文数(大括号+双目运算符使用)
- 职高计算机专业c语言_重庆市职业高中计算机专业C语言试题
- Ubuntu 14.04安装 skype
- 解决pycharm下载第三方库速度慢的问题
- 共阳极数码管显示0~9_《显示器件应用分析精粹》之(3)数码管静态显示
- Android智能指针——读书笔记
- linux命令行怎么播放,在linux命令行里能听歌看电影吗
- 秋冬饮品研发没思路?带你看新品5大趋势!
- 一篇文章读懂:Spark运行模式
- 夏普电视显示服务器连线异常,夏普电视黑屏的原因?夏普电视常见故障!