Class Struct

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product

    public class Struct
    extends ParameterSetType<Struct>
    implements scala.Product, java.io.Serializable
    A configuration for setting telescope and instrument parameters

    param: paramSet a set of Parameters

    See Also:
    Serialized Form
    • Constructor Detail

      • Struct

        public Struct​(scala.collection.immutable.Set<Parameter<?>> paramSet)
      • Struct

        public Struct()
        A Java helper to create Struct with empty paramSet
    • Method Detail

      • apply

        public static Struct apply​(scala.collection.immutable.Set<Parameter<?>> paramSet)
        A helper method to create Struct from given paramSet

        Parameters:
        paramSet - a set of parameters
        Returns:
        an instance of Struct
      • create

        protected Struct create​(scala.collection.immutable.Set<Parameter<?>> data)
        Create a new Struct instance when a parameter is added or removed

        Specified by:
        create in class ParameterSetType<Struct>
        Parameters:
        data - a set of parameters
        Returns:
        a new instance of Struct with provided data
      • toString

        public java.lang.String toString()
        A comma separated string representation of all values this Struct holds
        Overrides:
        toString in class ParameterSetType<Struct>
        Returns:
        (undocumented)