JQuantLib v0.2.4 API Javadocs

org.jquantlib.daycounters
Class SimpleDayCounter.Impl

Package class diagram package SimpleDayCounter.Impl
java.lang.Object
  extended by org.jquantlib.daycounters.DayCounter.Impl
      extended by org.jquantlib.daycounters.SimpleDayCounter.Impl
Enclosing class:
SimpleDayCounter

private final class SimpleDayCounter.Impl
extends DayCounter.Impl


Field Summary
private  DayCounter fallback
           
 
Constructor Summary
private SimpleDayCounter.Impl()
           
 
Method Summary
protected  long dayCount(Date dateStart, Date dateEnd)
          To be overloaded by more complex day counters
protected  String name()
           
protected  double yearFraction(Date dateStart, Date dateEnd, Date refPeriodStart, Date refPeriodEnd)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fallback

private final DayCounter fallback
Constructor Detail

SimpleDayCounter.Impl

private SimpleDayCounter.Impl()
Method Detail

name

protected final String name()
Specified by:
name in class DayCounter.Impl

dayCount

protected long dayCount(Date dateStart,
                        Date dateEnd)
Description copied from class: DayCounter.Impl
To be overloaded by more complex day counters

Overrides:
dayCount in class DayCounter.Impl
Parameters:
dateStart - is the starting Date
dateEnd - is the ending Date
Returns:
the period between two dates as a fraction of year

yearFraction

protected final double yearFraction(Date dateStart,
                                    Date dateEnd,
                                    Date refPeriodStart,
                                    Date refPeriodEnd)
Specified by:
yearFraction in class DayCounter.Impl

JQuantLib v0.2.4 API Javadocs

Submit a bug or feature request

JQuantLib is free software: you can redistribute it and/or modify it under the terms of the JQuantLib license. You should have received a copy of the license along with this program; if not, please email mailto:jquant-devel@lists.sourceforge.net. The license is also available online at http://www.jquantlib.org/index.php/LICENSE.TXT.