Package org.planit.od

Class ODDataImpl<T>

  • Type Parameters:
    T - the type of data to be stored for each origin-destination cell
    All Implemented Interfaces:
    ODData<T>
    Direct Known Subclasses:
    ODMatrix, ODPathMatrix

    public abstract class ODDataImpl<T>
    extends Object
    implements ODData<T>
    Base class containing common methods required by all classes which implement ODData
    Author:
    gman6028
    • Field Detail

      • zones

        protected Zones<?> zones
        holder for zones considered in the matrix
    • Constructor Detail

      • ODDataImpl

        public ODDataImpl​(Zones<?> zones)
        Constructor
        Parameters:
        zones - zones considered in the matrix
    • Method Detail

      • getNumberOfTravelAnalysisZones

        public int getNumberOfTravelAnalysisZones()
        Returns the number of zones contained in the object
        Specified by:
        getNumberOfTravelAnalysisZones in interface ODData<T>
        Returns:
        number of zones in the object