Package net.sf.tweety.logics.mln.syntax
Class MarkovLogicNetwork
- java.lang.Object
-
- net.sf.tweety.commons.BeliefSet<MlnFormula,FolSignature>
-
- net.sf.tweety.logics.mln.syntax.MarkovLogicNetwork
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<MlnFormula>,java.util.Collection<MlnFormula>,BeliefBase
public class MarkovLogicNetwork extends BeliefSet<MlnFormula,FolSignature> implements java.io.Serializable
Instances of this class represent Markov Logic Networks [Domingos et. al.].- Author:
- Matthias Thimm
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID-
Fields inherited from class net.sf.tweety.commons.BeliefSet
EQUALS_USES_SIGNATURE, signature
-
-
Constructor Summary
Constructors Constructor Description MarkovLogicNetwork()Creates a new (empty) MLN.MarkovLogicNetwork(java.util.Collection<? extends MlnFormula> formulas)Creates a new conditional MLN with the given collection of MLN formulas.
-
Method Summary
Modifier and Type Method Description SignaturegetMinimalSignature()Returns the signature of the language of this knowledge base.protected FolSignatureinstantiateSignature()Instantiates the signature which is attached to the belief base.-
Methods inherited from class net.sf.tweety.commons.BeliefSet
add, addAll, clear, contains, containsAll, equals, getSignature, hashCode, instantiateSet, isEmpty, iterator, remove, removeAll, retainAll, setSignature, size, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MarkovLogicNetwork
public MarkovLogicNetwork()
Creates a new (empty) MLN.
-
MarkovLogicNetwork
public MarkovLogicNetwork(java.util.Collection<? extends MlnFormula> formulas)
Creates a new conditional MLN with the given collection of MLN formulas.- Parameters:
formulas- a collection of MLN formulas.
-
-
Method Detail
-
getMinimalSignature
public Signature getMinimalSignature()
Description copied from interface:BeliefBaseReturns the signature of the language of this knowledge base.- Specified by:
getMinimalSignaturein interfaceBeliefBase- Returns:
- the signature of the language of this knowledge base.
-
instantiateSignature
protected FolSignature instantiateSignature()
Description copied from class:BeliefSetInstantiates the signature which is attached to the belief base.- Specified by:
instantiateSignaturein classBeliefSet<MlnFormula,FolSignature>- Returns:
- the signature of this belief base
-
-