Class MacroscopicGridNetworkLayerGenerator

  • All Implemented Interfaces:
    NetworkLayerGenerator

    public class MacroscopicGridNetworkLayerGenerator
    extends Object
    implements NetworkLayerGenerator
    Generate a grid based network layer for specified modes of a given size. When using defaults it creates one link segment type named "default".
    Author:
    markr
    • Field Detail

      • PHYSICAL_LINK_SEGMENT_TYPE_NAME

        public static final String PHYSICAL_LINK_SEGMENT_TYPE_NAME
        name used for default physical link segment type name
        See Also:
        Constant Field Values
    • Constructor Detail

      • MacroscopicGridNetworkLayerGenerator

        protected MacroscopicGridNetworkLayerGenerator​(int rows,
                                                       int columns,
                                                       MacroscopicNetworkLayers layersContainer,
                                                       Mode... modes)
        Constructor
        Parameters:
        rows - to use
        columns - to use
        layersContainer - to use
        modes - to support
    • Method Detail

      • create

        public static MacroscopicGridNetworkLayerGenerator create​(int rows,
                                                                  int columns,
                                                                  MacroscopicNetworkLayers layersContainer,
                                                                  Mode... modes)
        create the generator with a number of rows and columns. It is assumed that the grid has coordinates in Cartesian form in meters. A single link segment type is created with the name "default" but without setting capacity, max density or access group information. This is left to the invoked of this method to further specify.
        Parameters:
        rows - to use
        columns - to use
        layersContainer - to register on
        modes - to support
        Returns:
        created grid network layer