public class RegularSchedule extends Object implements ScheduleInterface
TimeDiscretizationInterface| Constructor and Description |
|---|
RegularSchedule(TimeDiscretizationInterface timeDiscretization)
Create a schedule from a time discretization.
|
| 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.
|
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.
|
Calendar |
getReferenceDate()
Returns the reference data of this schedule.
|
Iterator<Period> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic RegularSchedule(TimeDiscretizationInterface timeDiscretization)
timeDiscretization - The time discretization.public Calendar getReferenceDate()
ScheduleInterfacegetReferenceDate in interface ScheduleInterfacepublic ArrayList<Period> getPeriods()
ScheduleInterfacegetPeriods in interface ScheduleInterfacepublic DayCountConventionInterface getDaycountconvention()
ScheduleInterfacegetDaycountconvention in interface ScheduleInterfacepublic int getNumberOfPeriods()
ScheduleInterfacegetNumberOfPeriods in interface ScheduleInterfacepublic Period getPeriod(int periodIndex)
ScheduleInterfacegetPeriod in interface ScheduleInterfaceperiodIndex - A given period index.public double getFixing(int periodIndex)
ScheduleInterfacegetFixing in interface ScheduleInterfaceperiodIndex - A given period index.public double getPayment(int periodIndex)
ScheduleInterfacegetPayment in interface ScheduleInterfaceperiodIndex - A given period index.public double getPeriodStart(int periodIndex)
ScheduleInterfacegetPeriodStart in interface ScheduleInterfaceperiodIndex - A given period index.public double getPeriodEnd(int periodIndex)
ScheduleInterfacegetPeriodEnd in interface ScheduleInterfaceperiodIndex - A given period index.public double getPeriodLength(int periodIndex)
ScheduleInterfacegetPeriodLength in interface ScheduleInterfaceperiodIndex - A given period index.Copyright © 2015. All rights reserved.