public interface ScheduleInterface extends Iterable<Period>
Period
which contains LocalDate
dates and
an alternative representation using doubles.
Within a schedule, the mapping from doubles to dates is one to one.Modifier and Type | Method and Description |
---|---|
DayCountConventionInterface |
getDaycountconvention()
Returns the daycount convention used to calculate period lengths.
|
double |
getFixing(int periodIndex)
Return the fixing converted to the internal daycounting relative
to the schedules reference date.
|
int |
getNumberOfPeriods()
Returns the number of periods.
|
double |
getPayment(int periodIndex)
Return the payment date converted to the internal daycounting relative
to the schedules reference date.
|
Period |
getPeriod(int periodIndex)
Return the period for a given period index.
|
double |
getPeriodEnd(int periodIndex)
Return the period end date converted to the internal daycounting relative
to the schedules reference date.
|
double |
getPeriodLength(int periodIndex)
Return the period length for a given period index.
|
List<Period> |
getPeriods()
Returns the array of periods.
|
double |
getPeriodStart(int periodIndex)
Return the period start date converted to the internal daycounting relative
to the schedules reference date.
|
LocalDate |
getReferenceDate()
Returns the reference data of this schedule.
|
forEach, iterator, spliterator
LocalDate getReferenceDate()
DayCountConventionInterface getDaycountconvention()
int getNumberOfPeriods()
Period getPeriod(int periodIndex)
periodIndex
- A given period index.double getFixing(int periodIndex)
periodIndex
- A given period index.double getPayment(int periodIndex)
periodIndex
- A given period index.double getPeriodStart(int periodIndex)
periodIndex
- A given period index.double getPeriodEnd(int periodIndex)
periodIndex
- A given period index.double getPeriodLength(int periodIndex)
periodIndex
- A given period index.Copyright © 2015. All rights reserved.