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,
ArrayList<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) |
int |
getNumberOfPeriods() |
double |
getPayment(int periodIndex) |
Period |
getPeriod(int periodIndex) |
double |
getPeriodLength(int periodIndex) |
ArrayList<Period> |
getPeriods()
Returns the array of periods.
|
Calendar |
getReferenceDate()
Returns the reference data of this schedule.
|
Iterator<Period> |
iterator() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public Schedule(Calendar referenceDate, ArrayList<Period> periods, DayCountConventionInterface daycountconvention)
public Calendar getReferenceDate()
ScheduleInterface
getReferenceDate
in interface ScheduleInterface
public ArrayList<Period> getPeriods()
ScheduleInterface
getPeriods
in interface ScheduleInterface
public DayCountConventionInterface getDaycountconvention()
ScheduleInterface
getDaycountconvention
in interface ScheduleInterface
public int getNumberOfPeriods()
getNumberOfPeriods
in interface ScheduleInterface
public Period getPeriod(int periodIndex)
getPeriod
in interface ScheduleInterface
public double getFixing(int periodIndex)
getFixing
in interface ScheduleInterface
public double getPayment(int periodIndex)
getPayment
in interface ScheduleInterface
public double getPeriodLength(int periodIndex)
getPeriodLength
in interface ScheduleInterface
Copyright © 2014. All rights reserved.