net.sourceforge.nite.datainspection.impl
Class StringSetValue
java.lang.Object
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
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
aset
public SetValue aset
da
public StringValue da
StringSetValue
public StringSetValue(StringValue da,
SetValue aset)
throws java.lang.NullPointerException
- Parameters:
da
- the string part of this Valueaset
- the set part of this Value
- Throws:
java.lang.NullPointerException
- if one or more arguments are null
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)