net.sourceforge.nite.datainspection.impl
Class TwoSetValue

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

public class TwoSetValue
extends java.lang.Object
implements Value

TwoSetValue Composite Value with 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 TwoSetValues

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

TwoSetValue

public TwoSetValue(SetValue aset,
                   SetValue bset)
            throws java.lang.NullPointerException
Parameters:
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

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