Class ArrivalBoundCache


  • public class ArrivalBoundCache
    extends java.lang.Object
    • Constructor Detail

      • ArrivalBoundCache

        protected ArrivalBoundCache()
    • Method Detail

      • clearCache

        protected void clearCache()
      • addArrivalBounds

        protected void addArrivalBounds​(AnalysisConfig configuration,
                                        Server server,
                                        java.util.Set<Flow> bounded_flows,
                                        Flow flow_of_interest,
                                        java.util.Set<ArrivalCurve> arrival_bounds)
                                 throws java.lang.Exception
        The cache content is generally overwritten! If there is an entry for this arrival bound and the arrival bounds are not convolved into a single one, then the cache just replaces any existing cache entry.
        Parameters:
        configuration -
        server -
        bounded_flows -
        flow_of_interest -
        arrival_bounds -
        Throws:
        java.lang.Exception
      • getCacheEntry

        protected ArrivalBoundCache.CacheEntryServer getCacheEntry​(AnalysisConfig configuration,
                                                                   Server server,
                                                                   java.util.Set<Flow> bounded_flows,
                                                                   Flow flow_of_interest)
        Returns the cache entry for the given parameters if there is one. If not, it returns null. In addition, if there's no entry, the internal mappings will be created as a subsequent adding of an according entry is expected.
        Parameters:
        server -
        bounded_flows -
        flow_of_interest -
        Returns:
      • addArrivalBounds

        protected void addArrivalBounds​(AnalysisConfig configuration,
                                        Turn turn,
                                        java.util.Set<Flow> bounded_flows,
                                        Flow flow_of_interest,
                                        java.util.Set<ArrivalCurve> arrival_bounds)
                                 throws java.lang.Exception
        The cache content is generally overwritten! If there is an entry for this arrival bound and the arrival bounds are not convolved into a single one, then the cache just replaces any existing cache entry.
        Parameters:
        configuration -
        server -
        bounded_flows -
        flow_of_interest -
        arrival_bounds -
        Throws:
        java.lang.Exception