This page (revision-7) was last changed on 20-Jul-2016 10:34 by Albrecht Striffler

This page was created on 17-Jul-2016 16:53 by unknown

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
7 20-Jul-2016 10:34 4 KB Albrecht Striffler to previous
6 18-Jul-2016 19:26 4 KB Albrecht Striffler to previous | to last
5 17-Jul-2016 17:09 4 KB Albrecht Striffler to previous | to last
4 17-Jul-2016 17:09 4 KB Albrecht Striffler to previous | to last
3 17-Jul-2016 17:08 4 KB Albrecht Striffler to previous | to last
2 17-Jul-2016 17:07 4 KB Albrecht Striffler to previous | to last
1 17-Jul-2016 16:53 3 KB unknown to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 5 changed one line
The TimeDB plugin for d3web-KnowWE by default provides a wide range range of function to be used on the current temporal state of a d3web problem solving session. See [Doc Expressions#Function Reference] for more details. Still, there will always be certain functionalities that are not covered by the default functions. To overcome this, the plugin also provides the possibility to define and use your own functions with Javascript.
The TimeDB plugin for d3web-KnowWE by default provides a wide range range of function to be used on the current temporal state of a d3web problem solving session. See [Function Reference|Doc Expressions#Function Reference] for more details. Still, there will always be certain functionalities that are not covered by the default functions. To overcome this, the plugin also provides the possibility to define and use your own functions with Javascript.
At line 37 changed one line
As we can see, we just add two numbers in the function ''sumOf''. Below it we define the signature to be exported for TimeDB usage. The function accepts two numbers and returns also a number. The following parameter types are available: NUMBER, STRING, DATE, DURATION, BOOLEAN, HISTORY_NUMBER, HISTORY_STRING, HISTORY_DATE, HISTORY_DURATION, HISTORY_BOOLEAN, HISTORY_ANY, ANY. The history types are basically arrays of the other non-history types. Also see [Doc Expressions] for more info about parameter types.
As we can see, we just add two numbers in the function ''sumOf''. Below it, we define the signature to be exported for TimeDB usage. The function accepts two numbers and returns also a number. The following parameter types are available: NUMBER, STRING, DATE, DURATION, BOOLEAN, HISTORY_NUMBER, HISTORY_STRING, HISTORY_DATE, HISTORY_DURATION, HISTORY_BOOLEAN, HISTORY_ANY, ANY. The history types are basically arrays of the other non-history types. Also see [Doc Expressions] for more info about parameter types.
At line 117 changed one line
There is the possibility to debug the functions you have defined. Just us the tool "Debugger" on the top right of the ~%%Function markup. It will open a new window that contains the defined function again and instructions on how to debug them. You can also try this with the examples given on this page.
There is the possibility to debug the functions you have defined. Just us the tool "Debugger" on the top right of the Function markup. It will open a new window that contains the defined function again and instructions on how to debug them. You can also try this with the examples given on this page.
At line 143 added 4 lines