Class implements a builder of TimeGrid object. More...

#include <timeGridBuilder.hpp>

Public Member Functions

BuildTimeGridsetStartDate (const Date &)
 provides start date More...
 
BuildTimeGridsetEndDate (const Date &)
 provides end date More...
 
BuildTimeGridsetYearFraction (const SmartPointer< YearFraction > yf_)
 provides year fraction More...
 
BuildTimeGridsetDiscretization (const SmartPointer< TimeDiscretization > &d_)
 provides discretization algorithm More...
 
 operator TimeGrid ()
 builds TimeGrid More...
 

Private Attributes

Date start_date_
 Date determining beginning of the interval. More...
 
Date end_date_
 Date determining ending of the interval. More...
 
SmartPointer< YearFractionyf_
 Year Fraction converting time interval into real number interval. More...
 
SmartPointer< TimeDiscretizationdiscretizer_
 Interface of discretization algorithm. More...
 

Detailed Description

Class implements a builder of TimeGrid object.

Class implements the builder pattern that encapsulates the process of construction of time grid. Time grid is build basing on dates provided using the algorithm implemented in TimeDiscretization.

Member Function Documentation

julian::BuildTimeGrid::operator TimeGrid ( )

builds TimeGrid

The method builds TimeGrid on the basis of provided inputs.

BuildTimeGrid & julian::BuildTimeGrid::setDiscretization ( const SmartPointer< TimeDiscretization > &  discretizer)

provides discretization algorithm

BuildTimeGrid & julian::BuildTimeGrid::setEndDate ( const Date date)

provides end date

BuildTimeGrid & julian::BuildTimeGrid::setStartDate ( const Date date)

provides start date

BuildTimeGrid & julian::BuildTimeGrid::setYearFraction ( const SmartPointer< YearFraction yf)

provides year fraction

Member Data Documentation

SmartPointer<TimeDiscretization> julian::BuildTimeGrid::discretizer_
private

Interface of discretization algorithm.

Date julian::BuildTimeGrid::end_date_
private

Date determining ending of the interval.

Date julian::BuildTimeGrid::start_date_
private

Date determining beginning of the interval.

SmartPointer<YearFraction> julian::BuildTimeGrid::yf_
private

Year Fraction converting time interval into real number interval.


The documentation for this class was generated from the following files:
  • C:/Unix/home/OEM/jULIAN/src/dates/timeGrids/timeGridBuilder.hpp
  • C:/Unix/home/OEM/jULIAN/src/dates/timeGrids/timeGridBuilder.cpp