Class TargetExitPredicate

    • Constructor Summary

      Constructors 
      Constructor Description
      TargetExitPredicate​(java.util.List<java.lang.Long> targets)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ExitPredicate.Result test​(long sourceNode, long currentNode, double weightAtSource)
      called once for each accepted node during traversal
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TargetExitPredicate

        public TargetExitPredicate​(java.util.List<java.lang.Long> targets)
    • Method Detail

      • test

        public ExitPredicate.Result test​(long sourceNode,
                                         long currentNode,
                                         double weightAtSource)
        Description copied from interface: ExitPredicate
        called once for each accepted node during traversal
        Specified by:
        test in interface ExitPredicate
        Parameters:
        sourceNode - the source node
        currentNode - the current node
        weightAtSource - the total weight that has been collected by the Aggregator during the traversal
        Returns:
        a result