Class JMadModelDefinitionImpl

    • Constructor Detail

      • JMadModelDefinitionImpl

        public JMadModelDefinitionImpl()
    • 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 SequenceImpls 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 - the ModelFile 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 the ModelFiles that shall be called during the initialization process of the model.
        Returns:
        the files to be called
      • 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.