Interface Centroid

    • Field Detail

      • CENTROID_ID_CLASS

        static final Class<Centroid> CENTROID_ID_CLASS
        id class for generating ids
    • Method Detail

      • getIdClass

        default Class<? extends Centroid> getIdClass()
        Each managed id class is expected to generate its ids based on its class signature. To be able to generate the correct id the class used for id generation is to be provided via this method call.
        Specified by:
        getIdClass in interface ManagedId
        Returns:
        idClass to use for generating ids for instances of this idable derived class
      • setParentZone

        void setParentZone​(Zone parent)
        Set the parent zone of this centroid
        Parameters:
        parent - zone of this centroid
      • getParentZone

        Zone getParentZone()
        Return the parent zone of this centroid
        Returns:
        parent zone of this centroid
      • getName

        String getName()
        The name of the centroid
        Returns:
        its name
      • setName

        void setName​(String name)
        Set the name of the centroid
        Parameters:
        name - to use
      • hasName

        default boolean hasName()
        check if a name has been set
        Returns:
        true when set, false otherwise
      • shallowClone

        Centroid shallowClone()
        Create a shallow copy of this entity
        Specified by:
        shallowClone in interface IdAble
        Returns:
        shallow copy of entity
      • deepClone

        Centroid deepClone()
        An id entity should always support a deep copy, i.e., all "owned" members will be deep copied when a clone of this instance is created via this call. To be used with caution if not called by managed id container related code
        Specified by:
        deepClone in interface IdAble
        Returns:
        deep copy of entity
      • getPosition

        org.locationtech.jts.geom.Point getPosition()
        Position of the centroid
        Returns:
        the position
      • setPosition

        void setPosition​(org.locationtech.jts.geom.Point position)
        Set the Position of the centroid
        Parameters:
        position - to use
      • hasPosition

        default boolean hasPosition()
        Verify if position is available for centroid
        Returns:
        true when available, false otherwise