org.zeroexchange.mcredit.read
Class DefaultCreditPathFinder

java.lang.Object
  extended by org.zeroexchange.mcredit.read.DefaultCreditPathFinder
All Implemented Interfaces:
CreditPathFinder

public class DefaultCreditPathFinder
extends Object
implements CreditPathFinder

Author:
black

Constructor Summary
DefaultCreditPathFinder()
           
 
Method Summary
protected  void find2UsersPaths(User debtor, User creditor, CreditPaths paths, Deque<CreditLine> path)
          Finds paths between two users.
 List<CreditPaths> findPaths(User debtor, Collection<User> creditors, BigDecimal requiredValue)
          Finds the path from debtor to creditor.
 void setMaxSearchDepth(int maxSearchDepth)
          Sets the maximal search depth.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCreditPathFinder

public DefaultCreditPathFinder()
Method Detail

setMaxSearchDepth

public void setMaxSearchDepth(int maxSearchDepth)
Sets the maximal search depth.


findPaths

public List<CreditPaths> findPaths(User debtor,
                                   Collection<User> creditors,
                                   BigDecimal requiredValue)
Finds the path from debtor to creditor.

Specified by:
findPaths in interface CreditPathFinder
requiredValue - TODO

find2UsersPaths

protected void find2UsersPaths(User debtor,
                               User creditor,
                               CreditPaths paths,
                               Deque<CreditLine> path)
Finds paths between two users.



Copyright © 2013. All Rights Reserved.