|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcfa.vo.sed.dm.ArrayValue
cfa.vo.sed.dm.PosValue
public class PosValue
PosValue is a convenience class that contains RA and DEC only, in its data Vector. It is essentially a child of ArrayValue with a size of 2. Callers should take care to add the value of RA first, then DEC. The class itself cannot distinguish between RA and DEC, so best practice calls for RA in index 0 and DEC in index 1. Behavior is undefined otherwise.
| Field Summary |
|---|
| Fields inherited from class cfa.vo.sed.dm.ArrayValue |
|---|
_isSet, _name, _type, _ucd, _units, _values |
| Constructor Summary | |
|---|---|
PosValue()
|
|
PosValue(java.lang.Object value,
java.lang.String datatype)
|
|
PosValue(java.lang.Object value,
java.lang.String ucd,
java.lang.String name,
java.lang.String units,
java.lang.String type)
|
|
PosValue(java.lang.String ucd)
|
|
| Method Summary | |
|---|---|
void |
addDataValue(java.lang.Object value,
java.lang.String datatype)
Adds a value. |
java.lang.Object |
getDataValue(int index)
Returns Double at requested index between 0 and 1. |
java.lang.Double |
getDec()
Gets the dec. |
java.lang.String |
getPosString()
Gets the the RA and DEC as a Position string= "RA DEC" |
java.lang.Double |
getRa()
Gets the ra. |
void |
setDec(java.lang.Double dec)
Sets the coverage dec. |
void |
setRa(java.lang.Double ra)
Sets the ra. |
java.lang.String |
toString()
Override Object's toString() method. |
| Methods inherited from class cfa.vo.sed.dm.ArrayValue |
|---|
getData, getDatatype, getName, getSize, getUCD, getUnits, isConstant, isSet, setIsConstant, setName, setUCD, setUnits |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface cfa.vo.sed.dm.IValue |
|---|
getData, getDatatype, getName, getSize, getUCD, getUnits, isConstant, isSet, setIsConstant, setName, setUCD, setUnits |
| Constructor Detail |
|---|
public PosValue()
public PosValue(java.lang.String ucd)
public PosValue(java.lang.Object value,
java.lang.String datatype)
public PosValue(java.lang.Object value,
java.lang.String ucd,
java.lang.String name,
java.lang.String units,
java.lang.String type)
| Method Detail |
|---|
public java.lang.Object getDataValue(int index)
throws SEDException
Object
getDataValue in interface IValuegetDataValue in class ArrayValueSEDException
public void addDataValue(java.lang.Object value,
java.lang.String datatype)
addDataValue in interface IValueaddDataValue in class ArrayValuevalue - allowed object is
Objectpublic java.lang.String getPosString()
Stringpublic java.lang.Double getRa()
Doublepublic void setRa(java.lang.Double ra)
ra - allowed object is
Doublepublic java.lang.Double getDec()
Doublepublic void setDec(java.lang.Double dec)
dec - allowed object is
Doublepublic java.lang.String toString()
toString in class ArrayValueString
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||