The Encog Project

org.encog.nlp.memory
Class RelationHolder

java.lang.Object
  extended by org.encog.nlp.memory.RelationHolder

public class RelationHolder
extends java.lang.Object

Note: This class is part of the Encog Natural Language Processing(NLP) package. This package is still under heavy construction, and will not be considered stable until Encog 3.0.

Author:
jheaton

Constructor Summary
RelationHolder()
          Creates a new instance of RelationHolder
 
Method Summary
 void add(Relation relation)
           
 void add(RelationHolder holder)
           
 void clear()
           
 void clearShouldReplace()
           
 boolean contains(Relation find)
           
 int countContents(int target)
           
 int countNull()
           
 int countTargets(Concept concept, Concept type)
           
 Relation createRelation()
           
 void dump()
           
 int findFirstEmpty()
           
 java.util.Collection<Concept> getBaseConcepts()
           
 java.util.Collection<Relation> getBaseRelations()
           
 java.util.List<Relation> getRelations()
           
 void replaceRelations(java.util.List<Relation> list)
           
 java.util.List<Relation> searchSource(Concept source)
           
 java.util.List<Relation> searchSourceType(Concept source, Concept type)
           
 java.util.List<Relation> searchSourceTypeBase(Concept source, Concept type)
           
 java.util.List<Relation> searchTypeTarget(Concept type, Concept target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationHolder

public RelationHolder()
Creates a new instance of RelationHolder

Method Detail

add

public void add(Relation relation)

clear

public void clear()

getRelations

public java.util.List<Relation> getRelations()

add

public void add(RelationHolder holder)

contains

public boolean contains(Relation find)

dump

public void dump()

searchSource

public java.util.List<Relation> searchSource(Concept source)

searchSourceType

public java.util.List<Relation> searchSourceType(Concept source,
                                                 Concept type)

searchSourceTypeBase

public java.util.List<Relation> searchSourceTypeBase(Concept source,
                                                     Concept type)

searchTypeTarget

public java.util.List<Relation> searchTypeTarget(Concept type,
                                                 Concept target)

countTargets

public int countTargets(Concept concept,
                        Concept type)

getBaseConcepts

public java.util.Collection<Concept> getBaseConcepts()

getBaseRelations

public java.util.Collection<Relation> getBaseRelations()

createRelation

public Relation createRelation()

countNull

public int countNull()

findFirstEmpty

public int findFirstEmpty()

clearShouldReplace

public void clearShouldReplace()

countContents

public int countContents(int target)

replaceRelations

public void replaceRelations(java.util.List<Relation> list)

The Encog Project