jcreek.representation.inference
Class Explanation

java.lang.Object
  extended byjcreek.representation.inference.Explanation

public class Explanation
extends java.lang.Object

Represents an explanation between two entities. This type of explanation is a set of linked relations.


Method Summary
 void add(Relation r)
          Adds a relation to the end of the exlanation chain.
 boolean contains(Entity ent)
           
 boolean contains(Relation rel)
           
 double getStrength()
          Returns the strength of this particular explanation.
 Relation relationAt(int i)
           
 int size()
           
 java.lang.String text()
          Returns a natural language version of this explanation.
 java.lang.String toString()
           
 SubModel toSubModel()
          Returns a submodel containing all relations and entities in this explanation.
static SubModel toSubModel(Explanation[] explanations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getStrength

public double getStrength()
Returns the strength of this particular explanation.


toString

public java.lang.String toString()

toSubModel

public SubModel toSubModel()
Returns a submodel containing all relations and entities in this explanation.


contains

public boolean contains(Relation rel)

contains

public boolean contains(Entity ent)

toSubModel

public static SubModel toSubModel(Explanation[] explanations)

add

public void add(Relation r)
Adds a relation to the end of the exlanation chain.


text

public java.lang.String text()
Returns a natural language version of this explanation.


size

public int size()

relationAt

public Relation relationAt(int i)


Created at IDI, NTNU by the Artificial Intelligence and Learning group