|
finMath lib documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.finmath.time.Schedule
public class Schedule
A schedule of interest rate periods with
a fixing and payment.
The periods have two representations: one a 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 Summary | |
---|---|
Schedule(Calendar referenceDate,
DayCountConventionInterface daycountconvention,
Period... periods)
|
|
Schedule(Calendar referenceDate,
List<Period> periods,
DayCountConventionInterface daycountconvention)
|
Method Summary | |
---|---|
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)
|
List<Period> |
getPeriods()
Returns the array of periods. |
Calendar |
getReferenceDate()
Returns the reference data of this schedule. |
Iterator<Period> |
iterator()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Schedule(Calendar referenceDate, DayCountConventionInterface daycountconvention, Period... periods)
public Schedule(Calendar referenceDate, List<Period> periods, DayCountConventionInterface daycountconvention)
Method Detail |
---|
public Calendar getReferenceDate()
ScheduleInterface
getReferenceDate
in interface ScheduleInterface
public List<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
public String toString()
toString
in class Object
public Iterator<Period> iterator()
iterator
in interface Iterable<Period>
|
Copyright © 2014 Christian P. Fries. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |