Class Zoning.Zones

    • Constructor Detail

      • Zones

        public Zones()
    • Method Detail

      • registerZone

        protected Zone registerZone​(Zone zone)
        Add zone to the internal container.
        Parameters:
        zone - the zone to be added to this Zoning
        Returns:
        the zone added
      • createAndRegisterNewZone

        public Zone createAndRegisterNewZone​(Object externalId)
        Create and register new zone to network identified via its id
        Parameters:
        externalId - external Id of this zone
        Returns:
        the new zone created
      • getZoneById

        public Zone getZoneById​(long id)
        Retrieve zone by its Id
        Parameters:
        id - the id of the zone
        Returns:
        zone the zone retrieved
      • iterator

        public Iterator<Zone> iterator()
        Collect iterator for all registered zones (non-ordered)
        Specified by:
        iterator in interface Iterable<Zone>
        Returns:
        iterator
      • getNumberOfZones

        public int getNumberOfZones()
        Collect number of zones on the zoning
        Returns:
        the number of zones in this zoning