Assosiate mathematic equation in data base for runtime processing with JAVA

blueD

New Member
I am currently running a student project where I receive physical sensor values with java. To convert the sensor values (from one physical dim. into an other physical dim), each sensor has a specific input data type (8bit, 16bit, double, etc.) and a mathematical equation for the data conversion. This configuration should be stored in a database (directly or a link to a script)How would you recommend to implement such a feature?Conversion example:Sensor0 sends its value, the application should look in the database, how the sensor value of Sensor0 has to be converted. It fetches the conversion equation and converts the value.(e.g. Output value is calculated with: \[code\]output_val = (input_val^2) * pi / (2*inputval))\[/code\]The previous mathematical equation should be stored somehow as a database entry or script definition for various sensors and should be processed at runtime.My test system is a debian x86 computer with java runtime and a mysql server.
 
Back
Top