Class UntypedPhysicalNetwork<L extends UntypedPhysicalLayer<?,​?,​?>,​LS extends UntypedPhysicalNetworkLayers<L>>

    • Constructor Detail

      • UntypedPhysicalNetwork

        public UntypedPhysicalNetwork​(IdGroupingToken tokenId)
        Default constructor
        Parameters:
        tokenId - to use for id generation
      • UntypedPhysicalNetwork

        public UntypedPhysicalNetwork​(IdGroupingToken tokenId,
                                      org.opengis.referencing.crs.CoordinateReferenceSystem coordinateReferenceSystem)
        Default constructor
        Parameters:
        tokenId - to use for id generation
        coordinateReferenceSystem - preferred coordinate reference system to use
      • UntypedPhysicalNetwork

        protected UntypedPhysicalNetwork​(UntypedPhysicalNetwork<L,​LS> other,
                                         boolean deepCopy,
                                         ManagedIdDeepCopyMapper<Mode> modeMapper,
                                         ManagedIdDeepCopyMapper<L> layerMapper)
        Copy constructor.
        Parameters:
        other - to copy
        deepCopy - when true, create a deep copy, shallow copy otherwise
        modeMapper - to use for tracking mapping between original and copied modes
        layerMapper - to use for tracking mapping between original and copied layers
    • Method Detail

      • removeDanglingSubnetworks

        public void removeDanglingSubnetworks()
                                       throws PlanItException
        remove any dangling subnetworks from the network's layers if they exist and subsequently reorder the internal ids if needed
        Throws:
        PlanItException - thrown if error
      • removeDanglingSubnetworks

        public void removeDanglingSubnetworks​(Integer belowSize,
                                              Integer aboveSize,
                                              boolean alwaysKeepLargest)
        remove any dangling subnetworks below a given size from the network if they exist and subsequently reorder the internal ids if needed
        Parameters:
        belowSize - remove subnetworks below the given size
        aboveSize - remove subnetworks above the given size (typically set to maximum value)
        alwaysKeepLargest - when true the largest of the subnetworks is always kept, otherwise not