__''Important: You need the commercial plugin TimeDB to run the temporal extensions of KnowWE and d3web. Please contact info@denkbares.com for more information.''__

This is a simple knowledge base to demonstrate the gradient of a time-valued temperature value. For incoming values of ''Temperature'' (concerning the last 20 seconds) the gradient is calculated by the variable ''Gradient''. Based on its value, the DiaFlux knowledge base derives the value of the abstraction ''Progression''.

!!! Interview (and Derivation)

Try the temporal progression of the value of "Temperature" by iteratively entering values for "Temperature".

[{KnowWEPlugin quickInterview}]

!!! Knowledge Base

<flowchart fcid="flow_e087e5af" name="Main" icon="sanduhr.gif" width="526" height="244" autostart="true" idCounter="21">

	<!-- nodes of the flowchart -->
	<node fcid="#node_2">
		<position left="40" top="31"></position>

	<node fcid="#node_11">
		<position left="20" top="107"></position>
		<action markup="KnOffice"><![CDATA[Temperature]]></action>

	<node fcid="#node_14">
		<position left="168" top="107"></position>
		<action markup="timeDB"><![CDATA["Gradient" = eval(gradient(Temperature[0s, -20s]))]]></action>

	<node fcid="#node_15">
		<position left="223" top="20"></position>
		<action markup="KnOffice"><![CDATA["Progression" = "increase"]]></action>

	<node fcid="#node_18">
		<position left="413" top="107"></position>
		<action markup="KnOffice"><![CDATA["Progression" = "constant"]]></action>

	<node fcid="#node_20">
		<position left="223" top="193"></position>
		<action markup="KnOffice"><![CDATA["Progression" = "decrease"]]></action>

	<!-- rules of the flowchart -->
	<edge fcid="#rule_12">

	<edge fcid="#rule_16">
		<guard markup="KnOffice"><![CDATA[KNOWN["Temperature"]]]></guard>

	<edge fcid="#rule_17">
		<guard markup="KnOffice"><![CDATA["Gradient" > 0]]></guard>

	<edge fcid="#rule_19">
		<guard markup="KnOffice"><![CDATA["Gradient" = 0]]></guard>

	<edge fcid="#rule_21">
		<guard markup="KnOffice"><![CDATA["Gradient" < 0]]></guard>



- Temperature [num] {°C}
- Gradient [num] <abstract>
- Progression [oc] <abstract>
-- decrease
-- constant
-- increase

!!! Knowledge Base Administration

Temperature example. 

%%Package DemoTemperature