Package org.ivoa.dm.pdl
Class ToolInterface
java.lang.Object
org.ivoa.dm.pdl.ToolInterface
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="pdl:ToolInterface",
role=objectType)
public class ToolInterface
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
The definition of the tool interface.
objectType: ToolInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for ToolInterface, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected List<ParameterGroup>all the Parameter Groups.protected ParameterGroupReferenceObject input : The group of of parameters that are required for tool execution - i.e.protected ParameterGroupReferenceObject output : The group of parameters that are produced by tool execution - i.e.protected List<ParameterDefinition>All possible parameters for the tool interface. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ToolInterfaceToolInterface(List<ParameterDefinition> parameters, List<ParameterGroup> groups, ParameterGroup input, ParameterGroup output) full parameter constructor.ToolInterface(ToolInterface other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a org.ivoa.dm.pdl.ParameterGroup to the composition.voidAdd a org.ivoa.dm.pdl.ParameterDefinition to the composition.static ToolInterfacecreate a ToolInterface in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns groups composition as an immutable list.getId()getInput()Returns input ReferenceReturns output ReferenceReturns parameters composition as an immutable list.voidRemove a org.ivoa.dm.pdl.ParameterGroup from the composition.voidRemove a org.ivoa.dm.pdl.ParameterDefinition from the composition.voidupdate a org.ivoa.dm.pdl.ParameterGroup in the composition.voidupdate a org.ivoa.dm.pdl.ParameterDefinition in the composition.voidsetGroups(List<ParameterGroup> pGroups) Defines whole groups composition.voidsetInput(ParameterGroup pInput) Defines input ReferencevoidsetOutput(ParameterGroup pOutput) Defines output ReferencevoidsetParameters(List<ParameterDefinition> pParameters) Defines whole parameters composition.voidupdates any cloned references that are contained within the hierarchy.voidupdateUsing(ToolInterface other) Update this object with the content of the given object.
-
Field Details
-
_id
inserted database key -
parameters
@VoDml(id="pdl:ToolInterface.parameters", role=composition, type="pdl:ParameterDefinition", typeRole=objectType) protected List<ParameterDefinition> parametersAll possible parameters for the tool interface. composition parameters : ( Multiplicity : 0..* ) -
groups
@VoDml(id="pdl:ToolInterface.groups", role=composition, type="pdl:ParameterGroup", typeRole=objectType) protected List<ParameterGroup> groupsall the Parameter Groups. composition groups : ( Multiplicity : 0..* ) -
input
@VoDml(id="pdl:ToolInterface.input", role=reference, type="pdl:ParameterGroup", typeRole=objectType) protected ParameterGroup inputReferenceObject input : The group of of parameters that are required for tool execution - i.e. input. ( Multiplicity : 0..1 ) -
output
@VoDml(id="pdl:ToolInterface.output", role=reference, type="pdl:ParameterGroup", typeRole=objectType) protected ParameterGroup outputReferenceObject output : The group of parameters that are produced by tool execution - i.e. output. ( Multiplicity : 0..1 )
-
-
Constructor Details
-
ToolInterface
public ToolInterface()Creates a new ToolInterface -
ToolInterface
public ToolInterface(List<ParameterDefinition> parameters, List<ParameterGroup> groups, ParameterGroup input, ParameterGroup output) full parameter constructor.- Parameters:
parameters- All possible parameters for the tool interface.groups- all the Parameter Groups.input- The group of of parameters that are required for tool execution - i.e. input.output- The group of parameters that are produced by tool execution - i.e. output.
-
ToolInterface
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Returns:
- the id
-
updateClonedReferences
public void updateClonedReferences()updates any cloned references that are contained within the hierarchy. -
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.
-
getParameters
Returns parameters composition as an immutable list.- Returns:
- parameters composition.
-
setParameters
Defines whole parameters composition.- Parameters:
pParameters- composition to set.
-
addToParameters
Add a org.ivoa.dm.pdl.ParameterDefinition to the composition.- Parameters:
p- org.ivoa.dm.pdl.ParameterDefinition to add
-
removeFromParameters
Remove a org.ivoa.dm.pdl.ParameterDefinition from the composition.- Parameters:
p- org.ivoa.dm.pdl.ParameterDefinition to remove
-
replaceInParameters
update a org.ivoa.dm.pdl.ParameterDefinition in the composition.- Parameters:
_p- org.ivoa.dm.pdl.ParameterDefinition to update the match is done via the database key
-
getGroups
Returns groups composition as an immutable list.- Returns:
- groups composition.
-
setGroups
Defines whole groups composition.- Parameters:
pGroups- composition to set.
-
addToGroups
Add a org.ivoa.dm.pdl.ParameterGroup to the composition.- Parameters:
p- org.ivoa.dm.pdl.ParameterGroup to add
-
removeFromGroups
Remove a org.ivoa.dm.pdl.ParameterGroup from the composition.- Parameters:
p- org.ivoa.dm.pdl.ParameterGroup to remove
-
replaceInGroups
update a org.ivoa.dm.pdl.ParameterGroup in the composition.- Parameters:
_p- org.ivoa.dm.pdl.ParameterGroup to update the match is done via the database key
-
getInput
Returns input Reference- Returns:
- input Reference
-
setInput
Defines input Reference- Parameters:
pInput- reference to set
-
getOutput
Returns output Reference- Returns:
- output Reference
-
setOutput
Defines output Reference- Parameters:
pOutput- reference to set
-
createToolInterface
create a ToolInterface in functional builder style.- Parameters:
f- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()- Specified by:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-