public class Schedule extends Object implements ScheduleInterface
Period
which contains Calendar dates and
an alternative representation using doubles.
Within a schedule, the mapping from doubles to dates is one to one.| Constructor and Description |
|---|
Schedule(Calendar referenceDate,
DayCountConventionInterface daycountconvention,
Period... periods) |
Schedule(Calendar referenceDate,
List<Period> periods,
DayCountConventionInterface daycountconvention) |
| 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.
|
Calendar |
getReferenceDate()
Returns the reference data of this schedule.
|
Iterator<Period> |
iterator() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic Schedule(Calendar referenceDate, DayCountConventionInterface daycountconvention, Period... periods)
public Schedule(Calendar referenceDate, List<Period> periods, DayCountConventionInterface daycountconvention)
public Calendar getReferenceDate()
ScheduleInterfacegetReferenceDate in interface ScheduleInterfacepublic List<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.