public class Literal extends Object implements Validating, Conjunctive, DisjunctiveImplicative, AtomContainer, scala.Product, scala.Serializable
Implicit conversion to rule available for convenience.
| Constructor and Description |
|---|
Literal(String name) |
Literal(String name,
boolean strongNegation,
scala.collection.Seq<Object> terms) |
| Modifier and Type | Method and Description |
|---|---|
protected Rule |
and(Rule bodyRule)
Parent method for rule -> new body elem append
|
Literal |
apply(scala.collection.Seq<Object> terms) |
scala.collection.immutable.Set<Literal> |
getHead()
Note: this is the same result as for getPosAtoms, take care when composing new rule syntax!
|
scala.collection.immutable.Set<Literal> |
getNegAtoms() |
scala.collection.immutable.Set<Literal> |
getPosAtoms() |
Literal |
ground(scala.collection.immutable.Map<Object,Object> variables,
scala.collection.immutable.List<Object> assignment)
Grounds the given literal.
|
boolean |
modelOf(scala.collection.immutable.Set<Literal> i) |
String |
name() |
protected org.bomba_lang.proto.BodilesRule |
or(Literal otherAtom)
Parent method for head composition.
|
boolean |
strongNegation() |
scala.collection.Seq<Object> |
terms() |
String |
toString() |
Rule |
v(Rule rule) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitandvimpliespublic Literal(String name)
public String name()
public boolean strongNegation()
public scala.collection.Seq<Object> terms()
public scala.collection.immutable.Set<Literal> getHead()
getHead in interface Implicativeprotected Rule and(Rule bodyRule)
Conjunctiveand in interface Conjunctiveprotected org.bomba_lang.proto.BodilesRule or(Literal otherAtom)
DisjunctiveImplicativeor in interface DisjunctiveImplicativepublic scala.collection.immutable.Set<Literal> getPosAtoms()
getPosAtoms in interface AtomContainerpublic scala.collection.immutable.Set<Literal> getNegAtoms()
getNegAtoms in interface AtomContainerpublic boolean modelOf(scala.collection.immutable.Set<Literal> i)
modelOf in interface Validatingtrue iff this interpretation is a model of this instanceCopyright © 2013-2014. All Rights Reserved.