Class VectorEntry
java.lang.Object
|
+--java.util.BitSet
|
+--VectorEntry
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class VectorEntry
- extends java.util.BitSet
- See Also:
- Serialized Form
Field Summary |
java.lang.String |
feature
this is the name of the feature |
java.util.BitSet |
featureVector
Vector that is built |
Constructor Summary |
VectorEntry(int featurecount,
int place)
Constructor without trace flag |
VectorEntry(java.lang.String arg0,
int featuresize,
int place)
Constructor with trace flag |
Method Summary |
java.lang.String |
featureVectorDisplay(int size)
Displays the vector as a string of "0" and "1" |
void |
or(VectorEntry ve)
extends the BitSet "or" to the Vector |
Methods inherited from class java.util.BitSet |
and, andNot, clear, clone, equals, get, hashCode, length, or, set, size, toString, xor |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
feature
public java.lang.String feature
- this is the name of the feature
featureVector
public java.util.BitSet featureVector
- Vector that is built
VectorEntry
public VectorEntry(java.lang.String arg0,
int featuresize,
int place)
- Constructor with trace flag
- Parameters:
arg0
- Trace flagfeaturesize
- Length of the BitSet needed, mod 64place
- Position in vector to be set
VectorEntry
public VectorEntry(int featurecount,
int place)
- Constructor without trace flag
- Parameters:
featurecount
- Length of the BitSet needed, mod 64place
- Position in vector to be set
or
public void or(VectorEntry ve)
- extends the BitSet "or" to the Vector
- Parameters:
ve
- The source for the "or" function- Returns:
- Void
featureVectorDisplay
public java.lang.String featureVectorDisplay(int size)
- Displays the vector as a string of "0" and "1"
- Parameters:
size
- The length of the vector to be displayed- Returns:
- The String representation of the vector