net.sourceforge.nite.datainspection.impl
Class StringTwoSetValue

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

public class StringTwoSetValue
extends java.lang.Object
implements Value

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

See Also:
is defined for the distance between two StringTwoSetValues

Field Summary
 SetValue aset
           
 SetValue bset
           
 StringValue da
           
 
Constructor Summary
StringTwoSetValue(StringValue da, SetValue aset, SetValue bset)
           
 
Method Summary
 double distance(StringTwoSetValue other)
          uses the dedicated DiceMetricsForStringTwoSetValues for computing the distance
 boolean equals(java.lang.Object o)
           
 SetValue getASetValue()
           
 SetValue getBSetValue()
           
 StringValue getDATypeValue()
           
 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

bset

public SetValue bset

da

public StringValue da
Constructor Detail

StringTwoSetValue

public StringTwoSetValue(StringValue da,
                         SetValue aset,
                         SetValue bset)
                  throws java.lang.NullPointerException
Parameters:
da - the dialogue act
aset - the a-set of dialogue acts
bset - the b-set of dialogue acts
Throws:
java.lang.NullPointerException - if one or more arguments are null
Method Detail

getDATypeValue

public StringValue getDATypeValue()

getASetValue

public SetValue getASetValue()

getBSetValue

public SetValue getBSetValue()

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface Value
Returns:
a List with the three values [datype,aset,bset]

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(StringTwoSetValue 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)