net.sourceforge.nite.datainspection.impl
Class StringSetValue

java.lang.Object
  extended by net.sourceforge.nite.datainspection.impl.StringSetValue
All Implemented Interfaces:
Value

public class StringSetValue
extends java.lang.Object
implements Value

StringSetValue Composite Value with one StringValue and one SetValue These composite values are used for AP agreement measuring (see Natasa paper for SigDial'05, Lisbon)

See Also:
defined for the distance between two StringSetValues

Field Summary
 SetValue aset
           
 StringValue da
           
 
Constructor Summary
StringSetValue(StringValue da, SetValue aset)
           
 
Method Summary
 double distance(StringSetValue other)
          uses the dedicated DiceMetricsForStringTwoSetValues for computing the distance
 boolean equals(java.lang.Object o)
           
 SetValue getSetValue()
           
 StringValue getStringValue()
           
 java.lang.Object getValue()
           
static void main(java.lang.String[] args)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

aset

public SetValue aset

da

public StringValue da
Constructor Detail

StringSetValue

public StringSetValue(StringValue da,
                      SetValue aset)
               throws java.lang.NullPointerException
Parameters:
da - the string part of this Value
aset - the set part of this Value
Throws:
java.lang.NullPointerException - if one or more arguments are null
Method Detail

getStringValue

public StringValue getStringValue()

getSetValue

public SetValue getSetValue()

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface Value
Returns:
a List with the two value parts [string,set]

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
Returns:
true iff this set wrapped equals o's set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

distance

public double distance(StringSetValue other)
uses the dedicated DiceMetricsForStringTwoSetValues for computing the distance

Returns:
the distance between this and the given other value

main

public static void main(java.lang.String[] args)