|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bbn.openmap.layer.vpf.CoordDoubleString
public class CoordDoubleString
Encapsulate the VPF Double Coordinate String primitive datatype.
| Constructor Summary | |
|---|---|
CoordDoubleString(int tuplecount,
int tuplesize,
BinaryFile input)
Construct a CoordDoubleString from a file input |
|
| Method Summary | |
|---|---|
double[] |
getasDouble(int tuple)
Get a tuple |
double |
getasDouble(int tuple,
int val)
Get a value in a tuple |
float[] |
getasFloat(int tuple)
Get a tuple |
float |
getasFloat(int tuple,
int val)
Get a value in a tuple |
java.lang.Number |
getPrimitiveType()
Accessor for the underlying primitive type |
double |
getXasDouble(int tuple)
Get the first value of a tuple |
float |
getXasFloat(int tuple)
Get the first value of a tuple |
double |
getYasDouble(int tuple)
Get the second value of a tuple |
float |
getYasFloat(int tuple)
Get the second value of a tuple |
double |
getZasDouble(int tuple)
Get the third value of a tuple |
float |
getZasFloat(int tuple)
Get the third value of a tuple |
int |
maxIndex()
The maximum indexable tuple value |
java.lang.String |
toString()
A pretty formatter for the doublestring |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CoordDoubleString(int tuplecount,
int tuplesize,
BinaryFile input)
throws FormatException
tuplecount - the number of tuples to read from the input
streamtuplesize - the number of doubles in the tupleinput - the input stream to read everything from
FormatException - if we have IO errors or premature
end-of-file| Method Detail |
|---|
public int maxIndex()
maxIndex in interface CoordTupleStringpublic java.lang.Number getPrimitiveType()
getPrimitiveType in interface CoordTupleStringpublic java.lang.String toString()
toString in class java.lang.Objectpublic float getXasFloat(int tuple)
tuple - the index of the tuple
tuplepublic double getXasDouble(int tuple)
tuple - the index of the tuple
tuplepublic float getYasFloat(int tuple)
tuple - the index of the tuple
tuplepublic double getYasDouble(int tuple)
tuple - the index of the tuple
tuplepublic float getZasFloat(int tuple)
tuple - the index of the tuple
tuplepublic double getZasDouble(int tuple)
tuple - the index of the tuple
tuplepublic float[] getasFloat(int tuple)
getasFloat in interface CoordTupleStringtuple - the index of the tuple
tuplepublic double[] getasDouble(int tuple)
getasDouble in interface CoordTupleStringtuple - the index of the tuple
tuple
public float getasFloat(int tuple,
int val)
getasFloat in interface CoordTupleStringtuple - the index of the tupleval - the index of the value
tuple
public double getasDouble(int tuple,
int val)
getasDouble in interface CoordTupleStringtuple - the index of the tupleval - the index of the value
tuple
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||