Class FreeColSpecObject

    • Field Detail

      • specification

        private Specification specification
        The Specification this object uses, which may be null.
    • Constructor Detail

      • FreeColSpecObject

        public FreeColSpecObject​(Specification specification)
        Create a new specification-object.
        Parameters:
        specification - The Specification to use.
    • Method Detail

      • setSpecification

        protected void setSpecification​(Specification specification)
        Sets the specification for this object.
        Overrides:
        setSpecification in class FreeColObject
        Parameters:
        specification - The Specification to use.
      • copyIn

        public <T extends FreeColObject> boolean copyIn​(T other)
        Copy another FreeColObject into this one if it is compatible.
        Overrides:
        copyIn in class FreeColObject
        Type Parameters:
        T - The FreeColObject subclass of the object to copy in.
        Parameters:
        other - The other object.
        Returns:
        True if the copy in is succesful.