diff --git a/src/git.xdrm.io/schastsp/lib/context/context.go b/src/git.xdrm.io/schastsp/lib/context/context.go new file mode 100644 index 0000000..d458af8 --- /dev/null +++ b/src/git.xdrm.io/schastsp/lib/context/context.go @@ -0,0 +1,20 @@ +package context + +/* (1) Context class +---------------------------------------------------------*/ +/* (1) Attributes */ +type Context struct { + windowSize float64; // 'timeid' window size +} + +/* (2) Constructor */ +func Create(winSize float64) *Context{ + var instance = new(Context); + + instance.windowSize = winSize; + + return instance +} + +/* (3) Getters */ +func (c Context) GetWindowSize() float64 { return c.windowSize } \ No newline at end of file