本文整理汇总了Java中edu.mit.csail.sdg.alloy4.A4Reporter.NOP属性的典型用法代码示例。如果您正苦于以下问题:Java A4Reporter.NOP属性的具体用法?Java A4Reporter.NOP怎么用?Java A4Reporter.NOP使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类edu.mit.csail.sdg.alloy4.A4Reporter
的用法示例。
在下文中一共展示了A4Reporter.NOP属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: TranslateAlloyToKodkod
/**
* Construct a translator based on a already-fully-constructed association
* map.
*
* @param bitwidth - the integer bitwidth to use
* @param unrolls - the maximum number of loop unrolling and recursion
* allowed
* @param a2k - the mapping from Alloy sig/field/skolem/atom to the
* corresponding Kodkod expression
*/
private TranslateAlloyToKodkod(int bitwidth, int unrolls, Map<Expr,Expression> a2k, Map<String,Expression> s2k)
throws Err {
this.unrolls = unrolls;
if (bitwidth < 0)
throw new ErrorSyntax("Cannot specify a bitwidth less than 0");
if (bitwidth > 30)
throw new ErrorSyntax("Cannot specify a bitwidth greater than 30");
this.rep = A4Reporter.NOP;
this.cmd = null;
this.frame = null;
this.bitwidth = bitwidth;
this.max = Util.max(bitwidth);
this.min = Util.min(bitwidth);
this.a2k = ConstMap.make(a2k);
this.s2k = ConstMap.make(s2k);
}
示例2: TranslateAlloyToKodkod
/** Construct a translator based on the given list of sigs and the given command.
* @param rep - if nonnull, it's the reporter that will receive diagnostics and progress reports
* @param opt - the solving options (must not be null)
* @param sigs - the list of sigs (must not be null, and must be a complete list)
* @param cmd - the command to solve (must not be null)
*/
private TranslateAlloyToKodkod (A4Reporter rep, A4Options opt, Iterable<Sig> sigs, Command cmd) throws Err {
this.unrolls = opt.unrolls;
this.rep = (rep != null) ? rep : A4Reporter.NOP;
this.cmd = cmd;
Pair<A4Solution, ScopeComputer> pair = ScopeComputer.compute(this.rep, opt, sigs, cmd);
this.frame = pair.a;
this.bitwidth = pair.a.getBitwidth();
this.min = pair.a.min();
this.max = pair.a.max();
this.a2k = null;
this.s2k = null;
BoundsComputer.compute(rep, frame, pair.b, sigs);
}