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) |
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public RegularSchedule(TimeDiscretizationInterface timeDiscretization)
timeDiscretization
- The time discretization.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.