EMMA Coverage Report (generated Sat Jan 08 08:46:59 EST 2011)
[all classes][net.sourceforge.finmodel.account]

COVERAGE SUMMARY FOR SOURCE FILE [InterestAccount.java]

nameclass, %method, %block, %line, %
InterestAccount.java0%   (0/1)0%   (0/5)0%   (0/67)0%   (0/18)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class InterestAccount0%   (0/1)0%   (0/5)0%   (0/67)0%   (0/18)
InterestAccount (): void 0%   (0/1)0%   (0/3)0%   (0/2)
InterestAccount (BigDecimal): void 0%   (0/1)0%   (0/9)0%   (0/3)
InterestAccount (String, BigDecimal): void 0%   (0/1)0%   (0/9)0%   (0/3)
getInherentRules (): List 0%   (0/1)0%   (0/11)0%   (0/3)
init (String, BigDecimal): void 0%   (0/1)0%   (0/35)0%   (0/7)

1package net.sourceforge.finmodel.account;
2 
3import java.math.BigDecimal;
4import java.util.ArrayList;
5import java.util.List;
6 
7import net.sourceforge.finmodel.asset.Cash;
8import net.sourceforge.finmodel.rules.APRRule;
9import net.sourceforge.finmodel.rules.Rule;
10 
11public class InterestAccount extends AccountImpl {
12        private CashAccount interestSource;
13        private APRRule interestRule;
14        static final long serialVersionUID = 1L;
15        
16        public InterestAccount() {
17                
18        }
19        
20        public InterestAccount(BigDecimal rate) {
21                super( "INTEREST", Cash.getInstance());
22                init("INTEREST", rate);
23        }
24 
25        public InterestAccount(String name, BigDecimal rate) {
26                super( name, Cash.getInstance());
27                init(name, rate);
28        }
29 
30        private void init(String name, BigDecimal rate) {
31                interestSource = new CashAccount("INT: " + name);
32                interestRule = new APRRule();
33                interestRule.setSource(interestSource);
34                interestRule.setDestination(this);
35                interestRule.setExamine(this);
36                interestRule.setAPR(rate);
37        }
38 
39 
40        public List<Rule> getInherentRules() {
41                List<Rule> rc = new ArrayList<Rule>();
42                rc.add(interestRule);
43                return rc;
44        }
45}

[all classes][net.sourceforge.finmodel.account]
EMMA 2.1.5320 (stable) (C) Vladimir Roubtsov