|
CAR (Context-Aware Retrieval) v1.0 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.Vector | +--ValueTuple
A ValueTuple is a vector of Values. It can have an associated label (but only for use in the session file).
See the Basic Terminology section of the User Manual for a description.
Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
modCount |
Fields inherited from interface CarFace |
BOOLEAN_LITERAL, COLLECTION, DOUBLE_LITERAL, EXTERNAL, grammarNames, INTERNAL, KEYPHRASE, LITERALcapacityIncrement, LITERALinitialCapacity, MARKUP, SERIAL, SESSION, STRING_LITERAL, STRINGVALUE_LITERAL |
Constructor Summary | |
ValueTuple()
|
Method Summary | |
void |
addValue(Value val)
adds the provided Value to the end of the ValueTuple |
boolean |
ANY()
If this has a single Value of string value 'ANY' then true is returned, else false. |
java.lang.Object |
clone()
returns a clone (copy) of this ValueTuple |
boolean |
getBooleanValue(int n)
for system programmer's use only |
java.lang.String |
getLabel()
for system programmer's use only |
double |
getNumericValue(int n)
gets the nth Value as a double. |
java.lang.String |
getStringValue(int n)
gets the nth Value as a string. |
java.lang.String[] |
getStringValues()
gets all the values of the tuple as strings. |
Value |
getValue(int i)
gets the ith Value. |
boolean |
labelled()
for system programmer's use only |
int |
numberOfValues()
returns the number of Values in the ValueTuple |
boolean |
sameValue(ValueTuple vt)
indicates whether this has the same Values as the provided ValueTuple. |
double |
score(ValueTuple query)
An input query ValueTuple is 'scored' against a target ValueTuple, in the range 0.0 to 2.0. |
void |
setLabel(java.lang.String lab)
for system programmer's use only |
void |
setLabelled(boolean b)
for system programmer's use only |
static void |
t(java.lang.String s)
Provides trace output of string if -dValueTuple on command line of CAR run |
java.lang.String |
toString()
converts the ValueTuple to a string. |
Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, clear, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
|
Methods inherited from interface java.util.List |
iterator, listIterator, listIterator |
Constructor Detail |
public ValueTuple()
Method Detail |
public static final void t(java.lang.String s)
public java.lang.Object clone()
clone
in class java.util.Vector
public int numberOfValues()
public void addValue(Value val)
public void setLabel(java.lang.String lab)
public void setLabelled(boolean b)
public boolean labelled()
public java.lang.String getLabel()
public final java.lang.String getStringValue(int n)
Value.getStringValue()
public final double getNumericValue(int n)
Value.getNumericValue()
public final Value getValue(int i)
public final boolean sameValue(ValueTuple vt)
Value.sameValue(Value)
public final boolean getBooleanValue(int n)
public final boolean ANY()
public final double score(ValueTuple query)
Value.score(Value)
public final java.lang.String[] getStringValues()
public java.lang.String toString()
toString
in class java.util.Vector
|
CAR (Context-Aware Retrieval) v1.0 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |