public class Toxicity extends Object implements ToxicityNode
| Constructor and Description |
|---|
Toxicity() |
| Modifier and Type | Method and Description |
|---|---|
Node |
convertToXml(Document xml) |
Double |
getAverageCost()
Compute the average cost.
|
List<Source> |
getSources()
Returns the list of sources with debts.
|
List<Source> |
getSources(BigDecimal threshold)
The list of sources for which the total debt is greater than the provided
threshold.
|
BigDecimal |
getTotalCostByDebt(DebtType debtType) |
void |
readFromXml(Node node) |
void |
setSources(Collection<Source> sources) |
String |
toString() |
public static final String NODE_NAME
public Node convertToXml(Document xml)
convertToXml in interface ToxicityNodepublic void readFromXml(Node node)
readFromXml in interface ToxicityNodepublic void setSources(Collection<Source> sources)
public List<Source> getSources()
public List<Source> getSources(BigDecimal threshold)
public Double getAverageCost()
public BigDecimal getTotalCostByDebt(DebtType debtType)
Copyright © 2012 Cezar Coca. All Rights Reserved.