Constructor and Description |
---|
RegularSchedule(TimeDiscretization timeDiscretization)
Create a schedule from a time discretization.
|
Modifier and Type | Method and Description |
---|---|
DayCountConvention |
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.
|
int |
getPeriodIndex(double time)
Return the index of the period which contains the given time point.
|
int |
getPeriodIndex(LocalDate date)
Return the index of the period which contains the given date.
|
double |
getPeriodLength(int periodIndex)
Return the period length for a given period index.
|
ArrayList<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.
|
Iterator<Period> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public RegularSchedule(TimeDiscretization timeDiscretization)
timeDiscretization
- The time discretization.public LocalDate getReferenceDate()
Schedule
getReferenceDate
in interface Schedule
public ArrayList<Period> getPeriods()
Schedule
getPeriods
in interface Schedule
public DayCountConvention getDaycountconvention()
Schedule
getDaycountconvention
in interface Schedule
public int getNumberOfPeriods()
Schedule
getNumberOfPeriods
in interface Schedule
public Period getPeriod(int periodIndex)
Schedule
public double getFixing(int periodIndex)
Schedule
public double getPayment(int periodIndex)
Schedule
getPayment
in interface Schedule
periodIndex
- A given period index.public double getPeriodStart(int periodIndex)
Schedule
getPeriodStart
in interface Schedule
periodIndex
- A given period index.public double getPeriodEnd(int periodIndex)
Schedule
getPeriodEnd
in interface Schedule
periodIndex
- A given period index.public double getPeriodLength(int periodIndex)
Schedule
getPeriodLength
in interface Schedule
periodIndex
- A given period index.public int getPeriodIndex(double time)
Schedule
getPeriodIndex
in interface Schedule
time
- A given time.public int getPeriodIndex(LocalDate date)
Schedule
getPeriodIndex
in interface Schedule
date
- A given date.Copyright © 2020. All rights reserved.