Package org.ivoa.dm.proposal.management
Class TelescopeArray
java.lang.Object
org.ivoa.dm.proposal.management.ObservingPlatform
org.ivoa.dm.proposal.management.TelescopeArray
- All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement
,org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposalManagement:TelescopeArray",
role=objectType)
public class TelescopeArray
extends ObservingPlatform
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
a set of telescopes that are operated together for an observation.
objectType: TelescopeArray
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class for TelescopeArray, mainly for use in the functional builder pattern. -
Field Summary
Modifier and TypeFieldDescriptionprotected List<TelescopeArrayMember>
the telescopes that make up the array.protected String
the array name.Fields inherited from class org.ivoa.dm.proposal.management.ObservingPlatform
_id
-
Constructor Summary
ConstructorDescriptionCreates a new TelescopeArrayTelescopeArray
(String name, List<TelescopeArrayMember> arrayMembers) full parameter constructor.TelescopeArray
(ObservingPlatform superinstance, String name, List<TelescopeArrayMember> arrayMembers) Constructor from supertype instance.TelescopeArray
(TelescopeArray other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a org.ivoa.dm.proposal.management.TelescopeArrayMember to the composition.copyMe()
make a clone of the object taking into account current polymorhic type.static TelescopeArray
create a TelescopeArray in functional builder style.void
Returns arrayMembers composition as an immutable list.getName()
Returns name Attribute.void
persistRefs
(jakarta.persistence.EntityManager _em) Deprecated.generally better to use the model level reference persistence as only this can deal with "contained" references properly.void
Remove a org.ivoa.dm.proposal.management.TelescopeArrayMember from the composition.void
update a org.ivoa.dm.proposal.management.TelescopeArrayMember in the composition.void
setArrayMembers
(List<TelescopeArrayMember> pArrayMembers) Defines whole arrayMembers composition.void
Set name Attribute.void
updates any cloned references that are contained within the hierarchy.void
updateUsing
(TelescopeArray other) Update this object with the content of the given object.fluent setter for name Attribute.Methods inherited from class org.ivoa.dm.proposal.management.ObservingPlatform
getId, getXmlId, hasNaturalKey, setXmlId, updateUsing
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType
getId
Methods inherited from interface org.ivoa.vodml.jaxb.XmlIdManagement
getXmlId, hasNaturalKey, setXmlId
-
Field Details
-
name
@VoDml(id="proposalManagement:TelescopeArray.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String namethe array name. : Attribute name : multiplicity 1 -
arrayMembers
@VoDml(id="proposalManagement:TelescopeArray.arrayMembers", role=composition, type="proposalManagement:TelescopeArrayMember", typeRole=objectType) protected List<TelescopeArrayMember> arrayMembersthe telescopes that make up the array. composition arrayMembers : ( Multiplicity : 1..* )
-
-
Constructor Details
-
TelescopeArray
public TelescopeArray()Creates a new TelescopeArray -
TelescopeArray
full parameter constructor.- Parameters:
name
- the array name.arrayMembers
- the telescopes that make up the array.
-
TelescopeArray
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other
- the object to be copied.
-
TelescopeArray
public TelescopeArray(ObservingPlatform superinstance, String name, List<TelescopeArrayMember> arrayMembers) Constructor from supertype instance.- Parameters:
superinstance
- The supertype.name
- the array name.arrayMembers
- the telescopes that make up the array.
-
-
Method Details
-
copyMe
make a clone of the object taking into account current polymorhic type.- Specified by:
copyMe
in classObservingPlatform
- Returns:
- the cloned object.
-
updateClonedReferences
public void updateClonedReferences()updates any cloned references that are contained within the hierarchy.- Overrides:
updateClonedReferences
in classObservingPlatform
-
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.
-
getName
Returns name Attribute.- Returns:
- name Attribute
-
setName
Set name Attribute.- Parameters:
pName
- value to set
-
withName
fluent setter for name Attribute.- Parameters:
pName
- value to set- Returns:
- TelescopeArray
-
getArrayMembers
Returns arrayMembers composition as an immutable list.- Returns:
- arrayMembers composition.
-
setArrayMembers
Defines whole arrayMembers composition.- Parameters:
pArrayMembers
- composition to set.
-
addToArrayMembers
Add a org.ivoa.dm.proposal.management.TelescopeArrayMember to the composition.- Parameters:
p
- org.ivoa.dm.proposal.management.TelescopeArrayMember to add
-
removeFromArrayMembers
Remove a org.ivoa.dm.proposal.management.TelescopeArrayMember from the composition.- Parameters:
p
- org.ivoa.dm.proposal.management.TelescopeArrayMember to remove
-
replaceInArrayMembers
update a org.ivoa.dm.proposal.management.TelescopeArrayMember in the composition.- Parameters:
_p
- org.ivoa.dm.proposal.management.TelescopeArrayMember to update the match is done via the database key
-
createTelescopeArray
create a TelescopeArray in functional builder style.- Parameters:
f
- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()- Specified by:
forceLoad
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
- Overrides:
forceLoad
in classObservingPlatform
-
persistRefs
Deprecated.generally better to use the model level reference persistence as only this can deal with "contained" references properly.- Specified by:
persistRefs
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
- Overrides:
persistRefs
in classObservingPlatform
-