Class OpticsDefinitionImpl

    • Constructor Detail

      • OpticsDefinitionImpl

        public OpticsDefinitionImpl()
        no-args constructor for XStream
      • OpticsDefinitionImpl

        public OpticsDefinitionImpl​(java.lang.String name,
                                    ModelFile... modelFiles)
      • OpticsDefinitionImpl

        public OpticsDefinitionImpl​(java.lang.String name,
                                    boolean overlay,
                                    ModelFile... modelFiles)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface OpticsDefinition
        Returns:
        the name of the optics
      • getOpticFileNames

        public final java.lang.String[] getOpticFileNames()
        Description copied from interface: OpticsDefinition
        convenience methods to get all the relative pathnames of the required files
        Specified by:
        getOpticFileNames in interface OpticsDefinition
        Returns:
        a list of FileNames for all ModelFiles this Optic consists of
      • isOverlay

        public boolean isOverlay()
        Specified by:
        isOverlay in interface OpticsDefinition
        Returns:
        true if this optics can be loaded together with another optics. false if it is a full optics definition which in most cases should override all strengths.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • addPostPtcUniverseFile

        public void addPostPtcUniverseFile​(ModelFile modelFile)
      • clone

        public OpticsDefinitionImpl clone()
                                   throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object