2006/unicorn/resources/tasklist tasklist.xml,1.6,1.7 tasklist.rdf,1.2,1.3

Update of /sources/public/2006/unicorn/resources/tasklist
In directory hutz:/tmp/cvs-serv30684/resources/tasklist

Modified Files:
	tasklist.xml tasklist.rdf 
Log Message:
Multithreading

Index: tasklist.rdf
===================================================================
RCS file: /sources/public/2006/unicorn/resources/tasklist/tasklist.rdf,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- tasklist.rdf	4 Sep 2006 07:38:50 -0000	1.2
+++ tasklist.rdf	29 Nov 2007 14:12:00 -0000	1.3
@@ -96,5 +96,22 @@
 			</ucn:Radio>
 		</ucn:hasParameter>
 	</ucn:Task>
+	
+	<ucn:Task ucn:reference="calculator">
+		<ucn:longName xml:lang="en">Calculator</ucn:longName>
+		<ucn:description xml:lang="en">An observer who evaluate simple arithmetic operations.</ucn:description>
+
+		<ucn:hasParameter>
+			<ucn:CheckBox ucn:reference="x2" ucn:default="unchecked">
+				<ucn:longName xml:lang="en">x2</ucn:longName>
+				<ucn:longName xml:lang="fr">x2</ucn:longName>
+			</ucn:CheckBox>
+		</ucn:hasParameter>
+	</ucn:Task>
+	
+	<ucn:Task ucn:reference="multithreading">
+		<ucn:longName xml:lang="en">multithreading</ucn:longName>
+		<ucn:description xml:lang="en">Calls 3 observators. Each observator sleeps during 5 second. It's to test multithreading.</ucn:description>
+	</ucn:Task>
 
 </rdf:RDF>

Index: tasklist.xml
===================================================================
RCS file: /sources/public/2006/unicorn/resources/tasklist/tasklist.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- tasklist.xml	8 Sep 2006 15:35:53 -0000	1.6
+++ tasklist.xml	29 Nov 2007 14:11:59 -0000	1.7
@@ -104,7 +104,41 @@
 			<parameter name="output" type="radio" default="xml" observer="appc-checker" ui="none" />
 		</parameters>
 	</task>
+	
+	<task id="calculator">
+		<subtasks>
+			<observation ref="calculator">
+				<handle mimetype="text/plain" priority="high" />
+			</observation>
+		</subtasks>
+		<parameters>
+			<parameter name="x2" type="checkbox" default="unchecked" ui="simple"> 
 
+				<value name="unchecked">
+					<mapped param="x2" observer="calculator" value="0" />
+				</value>
+				
+				<value name="on">
+					<mapped param="x2" observer="calculator" value="1" />
+				</value>
+			</parameter>
+		</parameters>
+	</task>
 
+	<task id="multithreading">
+		<subtasks>
+			<observation ref="sleeper1">
+				<handle mimetype="text/plain" priority="high" />
+			</observation>
+			
+			<observation ref="sleeper2">
+				<handle mimetype="text/plain" priority="high" />
+			</observation>
+			
+			<observation ref="sleeper3">
+				<handle mimetype="text/plain" priority="high" />
+			</observation>
+		</subtasks>
+	</task>
 
 </tasklist>

Received on Thursday, 29 November 2007 14:12:08 UTC