org.zeroexchange.mcredit.read
Class DefaultCreditPathFinder
java.lang.Object
org.zeroexchange.mcredit.read.DefaultCreditPathFinder
- All Implemented Interfaces:
- CreditPathFinder
public class DefaultCreditPathFinder
- extends Object
- implements CreditPathFinder
- Author:
- black
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCreditPathFinder
public DefaultCreditPathFinder()
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.