edu.washington.cs.supple.customization.scope.versionspace
Class VersionSpace

java.lang.Object
  extended byedu.washington.cs.supple.customization.scope.versionspace.VersionSpace
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
AncestorNamesFromRootVersionSpace, DescendantsNamesSubtreeVersionSpace, HasDescendantsVersionSpace, HasReferencesVersionSpace, IndependentJoinVersionSpace, IntersectionVersionSpace, NameSetVersionSpace, UnionVersionSpace

public abstract class VersionSpace
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Represents a version space of hypotheses, in our case Scopes for customization commands.

Author:
raphael
See Also:
Serialized Form

Field Summary
protected  java.util.List lowerBound
           
protected  java.util.List upperBound
           
protected  double weight
           
 
Constructor Summary
protected VersionSpace(double weight)
          Constructs a new version space.
protected VersionSpace(java.util.List lowerBound, java.util.List upperBound, double weight)
           
 
Method Summary
 java.lang.Object clone()
           
 StandardScope getScope()
           
abstract  void setLowerBound(Hypothesis h)
           
abstract  void setLowerBound(TrainingSample d)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

weight

protected double weight

upperBound

protected java.util.List upperBound

lowerBound

protected java.util.List lowerBound
Constructor Detail

VersionSpace

protected VersionSpace(double weight)
Constructs a new version space. The weight is used for computing update costs, similarity measure in unions and intersections.

Parameters:
weight -

VersionSpace

protected VersionSpace(java.util.List lowerBound,
                       java.util.List upperBound,
                       double weight)
Method Detail

getScope

public StandardScope getScope()

clone

public java.lang.Object clone()

setLowerBound

public abstract void setLowerBound(Hypothesis h)

setLowerBound

public abstract void setLowerBound(TrainingSample d)