Documentation of 'net.finmath.time.Schedule' Java class
Schedule
net.finmath.time

Class Schedule

  • All Implemented Interfaces:
    java.lang.Iterable<Period>, ScheduleInterface


    public class Schedule
    extends java.lang.Object
    implements ScheduleInterface
    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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      java.util.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.
      java.util.Calendar getReferenceDate()
      Returns the reference data of this schedule.
      java.util.Iterator<Period> iterator() 
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • getReferenceDate

        public java.util.Calendar getReferenceDate()
        Description copied from interface: ScheduleInterface
        Returns the reference data of this schedule. The reference date is only used to convert dates to doubles using and internal daycount conventions (ACT/365) which does not need to agree with the daycount convention used to calculate period length.
        Specified by:
        getReferenceDate in interface ScheduleInterface
        Returns:
        The reference data of this schedule corresponding to t=0.
      • getPeriod

        public Period getPeriod(int periodIndex)
        Description copied from interface: ScheduleInterface
        Return the period for a given period index.
        Specified by:
        getPeriod in interface ScheduleInterface
        Parameters:
        periodIndex - A given period index.
        Returns:
        The period for the given period index.
      • getFixing

        public double getFixing(int periodIndex)
        Description copied from interface: ScheduleInterface
        Return the fixing converted to the internal daycounting relative to the schedules reference date.
        Specified by:
        getFixing in interface ScheduleInterface
        Parameters:
        periodIndex - A given period index.
        Returns:
        The fixing converted to the internal daycounting relative to the schedules reference date.
      • getPayment

        public double getPayment(int periodIndex)
        Description copied from interface: ScheduleInterface
        Return the payment date converted to the internal daycounting relative to the schedules reference date.
        Specified by:
        getPayment in interface ScheduleInterface
        Parameters:
        periodIndex - A given period index.
        Returns:
        The payment date converted to the internal daycounting relative to the schedules reference date.
      • getPeriodStart

        public double getPeriodStart(int periodIndex)
        Description copied from interface: ScheduleInterface
        Return the period start date converted to the internal daycounting relative to the schedules reference date.
        Specified by:
        getPeriodStart in interface ScheduleInterface
        Parameters:
        periodIndex - A given period index.
        Returns:
        The period start date converted to the internal daycounting relative to the schedules reference date.
      • getPeriodEnd

        public double getPeriodEnd(int periodIndex)
        Description copied from interface: ScheduleInterface
        Return the period end date converted to the internal daycounting relative to the schedules reference date.
        Specified by:
        getPeriodEnd in interface ScheduleInterface
        Parameters:
        periodIndex - A given period index.
        Returns:
        The period end date converted to the internal daycounting relative to the schedules reference date.
      • getPeriodLength

        public double getPeriodLength(int periodIndex)
        Description copied from interface: ScheduleInterface
        Return the period length for a given period index.
        Specified by:
        getPeriodLength in interface ScheduleInterface
        Parameters:
        periodIndex - A given period index.
        Returns:
        The period length for a given period index.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • iterator

        public java.util.Iterator<Period> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Period>

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.