ibooleanliteral.java
来自「Java版的SAT求解器」· Java 代码 · 共 63 行
JAVA
63 行
/* * IBooleanLiteral.java * * Copyright 2004-2005 Positronic Software. * */package positronic.satisfiability.elements;import positronic.satisfiability.exceptions.*;/** The <code>IBooleanLiteral</code> interface must be implemented by any class * definition of <code>BooleanLiteral</code> contempleted as an alternative to * the <code>BooleanLiteral</code> class provided by this package. * * @author Kerry Michael Soileau * @version 1.1, 05/07/22 */public interface IBooleanLiteral extends Comparable{ /** * Constructs a new IBooleanLiteral with the same internal IBooleanVariable * but with opposite barring; that is, if this IBooleanLiteral is barred, * its complement will be unbarred, if not then its complement will be * barred. * * @return IBooleanLiteral with the same internal IBooleanVariable but with * opposite barring. */ IBooleanLiteral complement() throws BooleanLiteralException; /** * Returns <code>true</code> if * this.getBooleanVariable().getValue()==<code>true</code> and * this.isBarred()==<code>false</code> or * if this.getBooleanVariable().getValue()==<code>false</code> and * this.isBarred()==<code>true</code>. * * @return <code>true</code> or <code>false</code>. */ boolean evaluate(); /** * Returns the IBooleanVariable internal to this IBooleanLiteral. * * @return IBooleanVariable internal to this IBooleanLiteral. */ IBooleanVariable getBooleanVariable(); /** * Returns <code>true</code> if this IBooleanLiteral consists of a barred * IBooleanVariable; otherwise it returns <code>false</code>. * * @return <code>true</code> or <code>false</code>. */ boolean isBarred(); /** * Set the value of this.getBooleanVariable() such that this IBooleanLiteral * evaluates to <code>true</code>. */ void load();}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?