C# Class CarbonFitness.BusinessLogic.UnitHistory.Line

Inheritance: ILine
Show file Open project: yodiz/CarbonFitness

Public Methods

Method Description
GetAverageDifferencePerDayBetweenActualValues ( System.DateTime date ) : decimal
GetEnumerator ( ) : IEnumerator
GetFirstDate ( ) : System.DateTime
GetLastDate ( ) : System.DateTime
GetNextValuePoint ( System.DateTime date ) : ValuePoint
GetNumberOfDaysBetweenDates ( System.DateTime first, System.DateTime second ) : int
GetPreviousValuePoint ( System.DateTime date ) : ValuePoint
GetValue ( System.DateTime date ) : ValuePoint
GetValuePoints ( ) : CarbonFitness.BusinessLogic.UnitHistory.ValuePoint[]
Line ( ) : System
Line ( decimal>.Dictionary values ) : System
Line ( int id, decimal>.Dictionary values ) : System
Line ( int id, decimal>.Dictionary values, string title ) : System

Private Methods

Method Description
GetCalculatedValuePoint ( System.DateTime date ) : ValuePoint
GetNumberOfDaysFromPreviousValue ( System.DateTime date ) : int
IEnumerable ( ) : IEnumerator
getActualValuePoint ( System.DateTime date ) : ValuePoint
getIndexForValuePoint ( System.DateTime date ) : int
getValuePointWithIndex ( System.DateTime date, ValuePoint valuePoint ) : ValuePoint

Method Details

GetAverageDifferencePerDayBetweenActualValues() public method

public GetAverageDifferencePerDayBetweenActualValues ( System.DateTime date ) : decimal
date System.DateTime
return decimal

GetEnumerator() public method

public GetEnumerator ( ) : IEnumerator
return IEnumerator

GetFirstDate() public method

public GetFirstDate ( ) : System.DateTime
return System.DateTime

GetLastDate() public method

public GetLastDate ( ) : System.DateTime
return System.DateTime

GetNextValuePoint() public method

public GetNextValuePoint ( System.DateTime date ) : ValuePoint
date System.DateTime
return ValuePoint

GetNumberOfDaysBetweenDates() public method

public GetNumberOfDaysBetweenDates ( System.DateTime first, System.DateTime second ) : int
first System.DateTime
second System.DateTime
return int

GetPreviousValuePoint() public method

public GetPreviousValuePoint ( System.DateTime date ) : ValuePoint
date System.DateTime
return ValuePoint

GetValue() public method

public GetValue ( System.DateTime date ) : ValuePoint
date System.DateTime
return ValuePoint

GetValuePoints() public method

public GetValuePoints ( ) : CarbonFitness.BusinessLogic.UnitHistory.ValuePoint[]
return CarbonFitness.BusinessLogic.UnitHistory.ValuePoint[]

Line() public method

public Line ( ) : System
return System

Line() public method

public Line ( decimal>.Dictionary values ) : System
values decimal>.Dictionary
return System

Line() public method

public Line ( int id, decimal>.Dictionary values ) : System
id int
values decimal>.Dictionary
return System

Line() public method

public Line ( int id, decimal>.Dictionary values, string title ) : System
id int
values decimal>.Dictionary
title string
return System