java.lang.Object
net.i2p.router.peermanager.IntegrationCalculator

class IntegrationCalculatorextends Object
Determine how well integrated a peer is - how likely they will be useful to us if we are trying to get further connected.
  • Constructor Details

    • IntegrationCalculator

      private IntegrationCalculator()
      Utility class, not intended for instantiation.
  • Method Details

    • calc

      public static double calc(PeerProfile profile)
      How well integrated the peer is, as a weighted count of recent db introductions plus the integration bonus.
      Parameters:
      profile - the peer whose integration is measured
      Returns:
      a non-negative score; higher means more useful as a DB peer