adding lastvalueprovider interface and relevant methods.

This commit is contained in:
Will Charczuk 2016-07-18 12:57:10 -07:00
parent c14ab6a4b2
commit 2603c67e10
5 changed files with 27 additions and 5 deletions

View file

@ -11,3 +11,13 @@ type BoundedValueProvider interface {
Len() int
GetBoundedValue(index int) (x, y1, y2 float64)
}
// LastValueProvider is a special type of value provider that can return it's (potentially computed) last value.
type LastValueProvider interface {
GetLastValue() (x, y float64)
}
// BoundedLastValueProvider is a special type of value provider that can return it's (potentially computed) bounded last value.
type BoundedLastValueProvider interface {
GetBoundedLastValue(index int) (x, y1, y2 float64)
}