org.dllearner.utilities.examples
Class ExampleContainer

java.lang.Object
  extended by org.dllearner.utilities.examples.ExampleContainer
All Implemented Interfaces:
Comparable<ExampleContainer>

public class ExampleContainer
extends Object
implements Comparable<ExampleContainer>

A simple container for storing pos and negexamples, basically a more simple parameter or return value. It also contains static functions to test if all example sets are different.

Author:
Sebastian Hellmann

Constructor Summary
ExampleContainer(SortedSet<Individual> positiveExamples, SortedSet<Individual> negativeExamples)
           
 
Method Summary
static boolean add(ExampleContainer e)
          adds to a global example repository.
 int compareTo(ExampleContainer e)
           
 SortedSet<Individual> getNegativeExamples()
           
 SortedSet<Individual> getPositiveExamples()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleContainer

public ExampleContainer(SortedSet<Individual> positiveExamples,
                        SortedSet<Individual> negativeExamples)
Method Detail

add

public static boolean add(ExampleContainer e)
adds to a global example repository. returns false, if the set is contained already

Parameters:
e -
Returns:

compareTo

public int compareTo(ExampleContainer e)
Specified by:
compareTo in interface Comparable<ExampleContainer>

getNegativeExamples

public SortedSet<Individual> getNegativeExamples()

getPositiveExamples

public SortedSet<Individual> getPositiveExamples()


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann