Introduction to gSharp Calculations
gSharp's primary goal is to run user-defined calculations. These calculations process data from an external keyed data store (for example, a time-series database). Each calculation retrieves data from the external data store, performs a custom-built computation, and typically writes the result back to the data store. A single calculation can be configured for multiple entities—for example, physical assets, business units, data records, or any repeatable element relevant to the system.
Calculations are contained in custom-built .NET assemblies (usually built using Microsoft Visual Studio) that are registered with the gSharp server for configuration. Each calculation is developed as a class within the assembly, referred to as a gSharp module. An assembly may contain multiple modules, but each module contains only one calculation.
Create a New gSharp Calculation
Creating a new gSharp calculation involves building a .NET Framework 4.8 assembly using Visual Studio. At the current stage, due to technical constraints, calculations must be built on the .NET Framework 4.x. A future version of gSharp is expected to support .NET (Core).
Before starting Visual Studio, ensure that the gSharp Developer Kit is installed (see gSharp Installation). While not strictly necessary for development, the templates included in the kit assist by generating boilerplate code for your assembly and a testbed application for debugging and testing.
The process to create a new gSharp calculation assembly involves the following steps: