Package org.ivoa.dm.proposal.prop
Class CelestialTarget
java.lang.Object
org.ivoa.dm.proposal.prop.Target
org.ivoa.dm.proposal.prop.CelestialTarget
- All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement,org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity(name="CelestialTarget")
@VoDml(id="proposal:CelestialTarget",
role=objectType)
public class CelestialTarget
extends Target
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
The basic target setup for a celestial Target.
objectType: CelestialTarget
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for CelestialTarget, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CelestialPositionthe coordinates.protected org.ivoa.vodml.stdtypes.Unitthe unit for the coordinates.protected org.ivoa.dm.ivoa.RealQuantity.protected org.ivoa.dm.ivoa.RealQuantity.protected org.ivoa.dm.ivoa.RealQuantity.protected Mjdthe epoch at which the position was measured.protected org.ivoa.dm.ivoa.RealQuantity.Fields inherited from class org.ivoa.dm.proposal.prop.Target
_id, sourceName -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new CelestialTargetCelestialTarget(CelestialPosition coord, org.ivoa.vodml.stdtypes.Unit coordUnit, Mjd positionEpoch, org.ivoa.dm.ivoa.RealQuantity pmRA, org.ivoa.dm.ivoa.RealQuantity pmDec, org.ivoa.dm.ivoa.RealQuantity parallax, org.ivoa.dm.ivoa.RealQuantity sourceVelocity, String sourceName) full parameter constructor.CelestialTarget(CelestialTarget other) Copy Constructor.CelestialTarget(Target superinstance, CelestialPosition coord, org.ivoa.vodml.stdtypes.Unit coordUnit, Mjd positionEpoch, org.ivoa.dm.ivoa.RealQuantity pmRA, org.ivoa.dm.ivoa.RealQuantity pmDec, org.ivoa.dm.ivoa.RealQuantity parallax, org.ivoa.dm.ivoa.RealQuantity sourceVelocity) Constructor from supertype instance. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static CelestialTargetcreate a CelestialTarget in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetCoord()Returns coord Attribute.org.ivoa.vodml.stdtypes.UnitReturns coordUnit Attribute.org.ivoa.dm.ivoa.RealQuantityReturns parallax Attribute.org.ivoa.dm.ivoa.RealQuantitygetPmDec()Returns pmDec Attribute.org.ivoa.dm.ivoa.RealQuantitygetPmRA()Returns pmRA Attribute.Returns positionEpoch Attribute.org.ivoa.dm.ivoa.RealQuantityReturns sourceVelocity Attribute.voidsetCoord(CelestialPosition pCoord) Set coord Attribute.voidsetCoordUnit(org.ivoa.vodml.stdtypes.Unit pCoordUnit) Set coordUnit Attribute.voidsetParallax(org.ivoa.dm.ivoa.RealQuantity pParallax) Set parallax Attribute.voidsetPmDec(org.ivoa.dm.ivoa.RealQuantity pPmDec) Set pmDec Attribute.voidsetPmRA(org.ivoa.dm.ivoa.RealQuantity pPmRA) Set pmRA Attribute.voidsetPositionEpoch(Mjd pPositionEpoch) Set positionEpoch Attribute.voidsetSourceVelocity(org.ivoa.dm.ivoa.RealQuantity pSourceVelocity) Set sourceVelocity Attribute.voidupdateUsing(CelestialTarget other) Update this object with the content of the given object.withCoord(CelestialPosition pCoord) fluent setter for coord Attribute.withCoordUnit(org.ivoa.vodml.stdtypes.Unit pCoordUnit) fluent setter for coordUnit Attribute.withParallax(org.ivoa.dm.ivoa.RealQuantity pParallax) fluent setter for parallax Attribute.withPmDec(org.ivoa.dm.ivoa.RealQuantity pPmDec) fluent setter for pmDec Attribute.withPmRA(org.ivoa.dm.ivoa.RealQuantity pPmRA) fluent setter for pmRA Attribute.withPositionEpoch(Mjd pPositionEpoch) fluent setter for positionEpoch Attribute.withSourceVelocity(org.ivoa.dm.ivoa.RealQuantity pSourceVelocity) fluent setter for sourceVelocity Attribute.Methods inherited from class org.ivoa.dm.proposal.prop.Target
getId, getSourceName, getXmlId, hasNaturalKey, setSourceName, setXmlId, updateUsing, withSourceNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType
getIdMethods inherited from interface org.ivoa.vodml.jaxb.XmlIdManagement
getXmlId, hasNaturalKey, setXmlId
-
Field Details
-
coord
@VoDml(id="proposal:CelestialTarget.coord", role=attribute, type="proposal:CelestialPosition", typeRole=dataType) protected CelestialPosition coordthe coordinates. : Attribute coord type proposal:CelestialPosition : multiplicity 1 -
coordUnit
@VoDml(id="proposal:CelestialTarget.coordUnit", role=attribute, type="ivoa:Unit", typeRole=primitiveType) protected org.ivoa.vodml.stdtypes.Unit coordUnitthe unit for the coordinates. : Attribute coordUnit type ivoa:Unit : multiplicity 1 -
positionEpoch
@VoDml(id="proposal:CelestialTarget.positionEpoch", role=attribute, type="proposal:coords.mjd", typeRole=primitiveType) protected Mjd positionEpochthe epoch at which the position was measured. : Attribute positionEpoch type proposal:coords.mjd : multiplicity 1 -
pmRA
@VoDml(id="proposal:CelestialTarget.pmRA", role=attribute, type="ivoa:RealQuantity", typeRole=dataType) protected org.ivoa.dm.ivoa.RealQuantity pmRA. : Attribute pmRA type ivoa:RealQuantity : multiplicity 0..1 -
pmDec
@VoDml(id="proposal:CelestialTarget.pmDec", role=attribute, type="ivoa:RealQuantity", typeRole=dataType) protected org.ivoa.dm.ivoa.RealQuantity pmDec. : Attribute pmDec type ivoa:RealQuantity : multiplicity 0..1 -
parallax
@VoDml(id="proposal:CelestialTarget.parallax", role=attribute, type="ivoa:RealQuantity", typeRole=dataType) protected org.ivoa.dm.ivoa.RealQuantity parallax. : Attribute parallax type ivoa:RealQuantity : multiplicity 0..1 -
sourceVelocity
@VoDml(id="proposal:CelestialTarget.sourceVelocity", role=attribute, type="ivoa:RealQuantity", typeRole=dataType) protected org.ivoa.dm.ivoa.RealQuantity sourceVelocity. : Attribute sourceVelocity type ivoa:RealQuantity : multiplicity 0..1
-
-
Constructor Details
-
CelestialTarget
public CelestialTarget()Creates a new CelestialTarget -
CelestialTarget
public CelestialTarget(CelestialPosition coord, org.ivoa.vodml.stdtypes.Unit coordUnit, Mjd positionEpoch, org.ivoa.dm.ivoa.RealQuantity pmRA, org.ivoa.dm.ivoa.RealQuantity pmDec, org.ivoa.dm.ivoa.RealQuantity parallax, org.ivoa.dm.ivoa.RealQuantity sourceVelocity, String sourceName) full parameter constructor.- Parameters:
coord- the coordinates.coordUnit- the unit for the coordinates.positionEpoch- the epoch at which the position was measured.pmRA- .pmDec- .parallax- .sourceVelocity- .sourceName- A common name for the source.
-
CelestialTarget
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
CelestialTarget
public CelestialTarget(Target superinstance, CelestialPosition coord, org.ivoa.vodml.stdtypes.Unit coordUnit, Mjd positionEpoch, org.ivoa.dm.ivoa.RealQuantity pmRA, org.ivoa.dm.ivoa.RealQuantity pmDec, org.ivoa.dm.ivoa.RealQuantity parallax, org.ivoa.dm.ivoa.RealQuantity sourceVelocity) Constructor from supertype instance.- Parameters:
superinstance- The supertype.coord- the coordinates.coordUnit- the unit for the coordinates.positionEpoch- the epoch at which the position was measured.pmRA- .pmDec- .parallax- .sourceVelocity- .
-
-
Method Details
-
copyMe
make a clone of the object taking into account current polymorhic type. -
updateUsing
Update this object with the content of the given object. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
getCoord
Returns coord Attribute.- Returns:
- coord Attribute
-
setCoord
Set coord Attribute.- Parameters:
pCoord- value to set
-
withCoord
fluent setter for coord Attribute.- Parameters:
pCoord- value to set- Returns:
- CelestialTarget
-
getCoordUnit
public org.ivoa.vodml.stdtypes.Unit getCoordUnit()Returns coordUnit Attribute.- Returns:
- coordUnit Attribute
-
setCoordUnit
public void setCoordUnit(org.ivoa.vodml.stdtypes.Unit pCoordUnit) Set coordUnit Attribute.- Parameters:
pCoordUnit- value to set
-
withCoordUnit
fluent setter for coordUnit Attribute.- Parameters:
pCoordUnit- value to set- Returns:
- CelestialTarget
-
getPositionEpoch
Returns positionEpoch Attribute.- Returns:
- positionEpoch Attribute
-
setPositionEpoch
Set positionEpoch Attribute.- Parameters:
pPositionEpoch- value to set
-
withPositionEpoch
fluent setter for positionEpoch Attribute.- Parameters:
pPositionEpoch- value to set- Returns:
- CelestialTarget
-
getPmRA
public org.ivoa.dm.ivoa.RealQuantity getPmRA()Returns pmRA Attribute.- Returns:
- pmRA Attribute
-
setPmRA
public void setPmRA(org.ivoa.dm.ivoa.RealQuantity pPmRA) Set pmRA Attribute.- Parameters:
pPmRA- value to set
-
withPmRA
fluent setter for pmRA Attribute.- Parameters:
pPmRA- value to set- Returns:
- CelestialTarget
-
getPmDec
public org.ivoa.dm.ivoa.RealQuantity getPmDec()Returns pmDec Attribute.- Returns:
- pmDec Attribute
-
setPmDec
public void setPmDec(org.ivoa.dm.ivoa.RealQuantity pPmDec) Set pmDec Attribute.- Parameters:
pPmDec- value to set
-
withPmDec
fluent setter for pmDec Attribute.- Parameters:
pPmDec- value to set- Returns:
- CelestialTarget
-
getParallax
public org.ivoa.dm.ivoa.RealQuantity getParallax()Returns parallax Attribute.- Returns:
- parallax Attribute
-
setParallax
public void setParallax(org.ivoa.dm.ivoa.RealQuantity pParallax) Set parallax Attribute.- Parameters:
pParallax- value to set
-
withParallax
fluent setter for parallax Attribute.- Parameters:
pParallax- value to set- Returns:
- CelestialTarget
-
getSourceVelocity
public org.ivoa.dm.ivoa.RealQuantity getSourceVelocity()Returns sourceVelocity Attribute.- Returns:
- sourceVelocity Attribute
-
setSourceVelocity
public void setSourceVelocity(org.ivoa.dm.ivoa.RealQuantity pSourceVelocity) Set sourceVelocity Attribute.- Parameters:
pSourceVelocity- value to set
-
withSourceVelocity
fluent setter for sourceVelocity Attribute.- Parameters:
pSourceVelocity- value to set- Returns:
- CelestialTarget
-
createCelestialTarget
public static CelestialTarget createCelestialTarget(Consumer<CelestialTarget.CelestialTargetBuilder> f) create a CelestialTarget in functional builder style.- Parameters:
f- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad() -
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-