Class JMadModelDefinitionImpl
- java.lang.Object
-
- cern.accsoft.steering.jmad.modeldefs.domain.AbstractModelDefinition
-
- cern.accsoft.steering.jmad.modeldefs.domain.JMadModelDefinitionImpl
-
- All Implemented Interfaces:
ModelFileDependant
,JMadModelDefinition
public class JMadModelDefinitionImpl extends AbstractModelDefinition
-
-
Constructor Summary
Constructors Constructor Description JMadModelDefinitionImpl()
-
Method Summary
-
Methods inherited from class cern.accsoft.steering.jmad.modeldefs.domain.AbstractModelDefinition
containsOpticsDefinition, containsSequenceDefinition, findSequenceDefinition, getDefaultRangeDefinition, getOpticsDefinition, getRangeDefinitions, getRequiredFiles, getSequenceDefinition, toString
-
-
-
-
Method Detail
-
getDefaultSequenceDefinition
public SequenceDefinition getDefaultSequenceDefinition()
- Returns:
- the sequence definition, which shall be selected by default
-
getSequenceDefinitions
public java.util.List<SequenceDefinition> getSequenceDefinitions()
- Returns:
- the names of all
SequenceImpl
s defined for this machine
-
setDefaultSequenceDefinition
public void setDefaultSequenceDefinition(SequenceDefinition sequenceDefinition)
-
addSequenceDefinition
public void addSequenceDefinition(SequenceDefinition sequenceDefinition)
-
removeSequenceDefinition
public void removeSequenceDefinition(java.lang.String name)
-
getOpticsDefinitions
public java.util.List<OpticsDefinition> getOpticsDefinitions()
- Returns:
- all the possible optics definitions available for this model
-
getDefaultOpticsDefinition
public OpticsDefinition getDefaultOpticsDefinition()
- Returns:
- the default optics definition for this model
-
setDefaultOpticsDefinition
public void setDefaultOpticsDefinition(OpticsDefinition opticsDefinition)
-
addOpticsDefinition
public void addOpticsDefinition(OpticsDefinition opticsDefinition)
-
addInitFile
public void addInitFile(ModelFile modelFile)
Add an File which will be called when initializing the model- Parameters:
modelFile
- theModelFile
to add
-
removeInitFile
public void removeInitFile(ModelFile modelFile)
-
getName
public java.lang.String getName()
- Returns:
- the name
-
setName
public void setName(java.lang.String name)
-
getInitFiles
public java.util.List<ModelFile> getInitFiles()
Description copied from interface:JMadModelDefinition
this method must return all theModelFile
s that shall be called during the initialization process of the model.- Returns:
- the files to be called
-
getModelPathOffsets
public ModelPathOffsets getModelPathOffsets()
- Returns:
- the
ModelPathOffsets
for theModelFile
s
-
setModelPathOffsets
public void setModelPathOffsets(ModelPathOffsets modelPathOffsets)
-
getSourceInformation
public SourceInformation getSourceInformation()
- Returns:
- the
SourceInformation
for the model definition, which describes from which source the Model definition was loaded.
-
setSourceInformation
public void setSourceInformation(SourceInformation sourceInformation)
-
setModelPackUri
public void setModelPackUri(java.lang.String modelPackUri)
-
getModelPackUri
public java.lang.String getModelPackUri()
- Returns:
- the URI to the origin model pack of the model definition. This URI can be used with
jmad-modelpack-service to retrieve this definition at a later time. If this definition was not loaded from a
model pack, null is returned.
Unlike
JMadModelDefinition.getSourceInformation()
, this provides a more "high level" view on the origin location, independent of the (possibly temporary) location in the file system.
-
-