Commit 105ac638 authored by Gwenael Cattez's avatar Gwenael Cattez

Minor changes for evaluation demo

parent 43f7a4a2
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="Zibase" targetNamespace="http://zibase.homeautomation.common.demo.frascati.ow2.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://zibase.homeautomation.common.demo.frascati.ow2.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://zibase.homeautomation.common.demo.frascati.ow2.org/" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://zibase.homeautomation.common.demo.frascati.ow2.org/">
<xsd:element name="invokeModule" type="tns:invokeModule"/>
<xsd:complexType name="invokeModule">
<xsd:sequence>
<xsd:element minOccurs="0" name="arg0" type="xsd:string"/>
<xsd:element minOccurs="0" name="arg1" type="xsd:string"/>
<xsd:element minOccurs="0" name="arg2" type="xsd:string"/>
<xsd:element minOccurs="0" name="arg3" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="invokeModuleResponse" type="tns:invokeModuleResponse"/>
<xsd:complexType name="invokeModuleResponse">
<xsd:sequence>
<xsd:element minOccurs="0" name="return" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="invokeModuleResponse">
<wsdl:part name="parameters" element="tns:invokeModuleResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="invokeModule">
<wsdl:part name="parameters" element="tns:invokeModule">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="ZibasePortType">
<wsdl:operation name="invokeModule">
<wsdl:input name="invokeModule" message="tns:invokeModule">
</wsdl:input>
<wsdl:output name="invokeModuleResponse" message="tns:invokeModuleResponse">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ZibaseSoapBinding" type="tns:ZibasePortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="invokeModule">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="invokeModule">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="invokeModuleResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="Zibase">
<wsdl:port name="ZibasePort" binding="tns:ZibaseSoapBinding">
<soap:address location="http://localhost:9090/ZibasePort"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
......@@ -37,7 +37,8 @@
<composite.file>twitter</composite.file>
<composite.file.local>twitter_localhost</composite.file.local>
<composite.file.deploy>twitter_deploy</composite.file.deploy>
<org.ow2.frascati.binding.uri.base>http://192.168.1.13:8765</org.ow2.frascati.binding.uri.base>
<org.ow2.frascati.binding.uri.base>http://localhost:8766</org.ow2.frascati.binding.uri.base>
<!-- <org.ow2.frascati.binding.uri.base>http://192.168.1.10:8765</org.ow2.frascati.binding.uri.base> -->
</properties>
<dependencies>
......
......@@ -29,7 +29,7 @@
<include name="twitter"/>
<service name="twitterService" promote="twitter/twitterService">
<binding.ws uri="http://192.168.1.13:9007/Twitter" />
<binding.ws uri="http://192.168.1.10:9000/Twitter" />
</service>
</composite>
\ No newline at end of file
......@@ -29,7 +29,7 @@
<include name="twitter"/>
<service name="twitterService" promote="twitter/twitterService">
<binding.ws uri="http://localhost:9007/Twitter" />
<binding.ws uri="http://localhost:9000/Twitter" />
</service>
</composite>
\ No newline at end of file
......@@ -31,12 +31,14 @@
<relativePath>..</relativePath>
</parent>
<artifactId>alarm</artifactId>
<name>Fire Emergency Alarm</name>
<properties>
<composite.file>alarm_localhost</composite.file>
<composite.file.local>alarm_localhost</composite.file.local>
<composite.file.deploy>alarm_deploy</composite.file.deploy>
<org.ow2.frascati.binding.uri.base>http://localhost:8773</org.ow2.frascati.binding.uri.base>
<!-- <org.ow2.frascati.binding.uri.base>http://192.168.1.15:8765</org.ow2.frascati.binding.uri.base> -->
</properties>
......@@ -49,7 +51,13 @@
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-binding-ws</artifactId>
</dependency>
<dependency>
<groupId>de.huxhorn.sulky</groupId>
<artifactId>de.huxhorn.sulky.3rdparty.jlayer</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
......@@ -28,8 +28,10 @@
package org.ow2.frascati.demo.fireemergency.alarm;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.net.URL;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
......@@ -41,9 +43,10 @@ import org.osoa.sca.annotations.EagerInit;
import org.osoa.sca.annotations.Scope;
import org.ow2.frascati.demo.common.onoffdevice.SwOnOffDevice;
import sun.audio.AudioPlayer;
import sun.audio.AudioStream;
import sun.audio.*;
import javazoom.jl.decoder.JavaLayerException;
import javazoom.jl.player.Player;
/**
*
*/
......@@ -51,16 +54,17 @@ import sun.audio.AudioStream;
@Scope("COMPOSITE")
public class AlarmGUI extends SwOnOffDevice
{
private AudioStream soundAudioStream;
private Player mp3Player;
private Thread t;
public AlarmGUI()
{
super();
try
{
File alarmSoundFile=new File("C:/Users/Gwenael/Documents/workspace/frascati/demo/fire-emergency/alarm/src/main/resources/sounds/alarm.mp3");
InputStream soundStream=new FileInputStream(alarmSoundFile);
this.soundAudioStream=new AudioStream(soundStream);
File f=new File("src/main/resources/sounds/alarm.mp3");
InputStream is=new FileInputStream(f);
this.mp3Player=new Player(is);
}
catch (Exception e)
{
......@@ -75,7 +79,22 @@ public class AlarmGUI extends SwOnOffDevice
@Override
public Boolean onAction()
{
AudioPlayer.player.start(soundAudioStream);
if(t!=null) return false;
this.t = new Thread(new Runnable()
{
public void run()
{
try
{
mp3Player.play();
} catch (JavaLayerException e)
{
e.printStackTrace();
}
}
});
this.t.start();
return true;
}
......@@ -85,13 +104,25 @@ public class AlarmGUI extends SwOnOffDevice
@Override
public Boolean offAction()
{
AudioPlayer.player.stop(soundAudioStream);
this.t.stop();
this.t=null;
try
{
File f=new File("src/main/resources/sounds/alarm.mp3");
InputStream is=new FileInputStream(f);
this.mp3Player=new Player(is);
}
catch (Exception e)
{
e.printStackTrace();
}
return true;
}
public void playFile(File mp3file) throws Exception {
InputStream is = this.getClass().getClassLoader().getResource(mp3file.toString()).openStream();
public void playFile(File mp3file) throws Exception
{
System.out.println(mp3file);
InputStream is = getClass().getClassLoader().getResource(mp3file.toString()).openStream();
AudioInputStream in = AudioSystem.getAudioInputStream(is);
AudioFormat baseFormat = in.getFormat();
AudioFormat decodedFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, baseFormat.getSampleRate(), 16, baseFormat.getChannels(),baseFormat.getChannels() * 2, baseFormat.getSampleRate(), false);
......
......@@ -44,7 +44,7 @@
</component>
<service name="alarmControl" promote="alarm/alarmService">
<binding.ws uri= "http://192.168.1.14:9006/AlarmControl"/>
<binding.ws uri= "http://192.168.1.15:9000/AlarmControl"/>
</service>
</composite>
\ No newline at end of file
......@@ -44,7 +44,7 @@
</component>
<service name="alarmControl" promote="alarm/alarmService">
<binding.ws uri= "http://localhost:9002/AlarmControl"/>
<binding.ws uri= "http://localhost:9009/AlarmControl"/>
</service>
</composite>
\ No newline at end of file
......@@ -5,7 +5,7 @@ cd ..\common\twitter
call mvn clean install
@echo Press key to run Twitter
pause
start mvn -Prun
start mvn -Prun,web
cd ..\..\fire-emergency
......@@ -13,12 +13,18 @@ cd itemis-demo-interface
call mvn clean install
cd ..
cd alarm
call mvn clean install
@echo Press key to run Alarm
pause
start mvn -Prun,web
cd ..
cd turnstile
call mvn clean install
@echo Press key to run Turnstile
pause
start mvn -Prun
start mvn -Prun,web
cd ..
......@@ -26,7 +32,7 @@ cd fire-control-center
call mvn clean install
@echo Press key to run Fire Control Center
pause
start mvn -Prun
start mvn -Prun,web
cd ..
......@@ -34,7 +40,7 @@ cd sprinkler
call mvn clean install
@echo Press key to run Sprinkler
pause
start mvn -Prun
start mvn -Prun,web
cd ..
......
......@@ -38,8 +38,8 @@
<composite.file>firecontrolcenter_localhost</composite.file>
<composite.file.local>firecontrolcenter_localhost</composite.file.local>
<composite.file.deploy>firecontrolcenter_deploy</composite.file.deploy>
<org.ow2.frascati.binding.uri.base>http://192.168.1.13:8766</org.ow2.frascati.binding.uri.base>
<!-- <org.ow2.frascati.binding.uri.base>http://localhost:8789</org.ow2.frascati.binding.uri.base> -->
<org.ow2.frascati.binding.uri.base>http://localhost:8770</org.ow2.frascati.binding.uri.base>
<!-- <org.ow2.frascati.binding.uri.base>http://192.168.1.12:8766</org.ow2.frascati.binding.uri.base> -->
</properties>
<dependencies>
......
......@@ -35,33 +35,32 @@
<service name="statuslistener">
<interface.wsdl interface="all-wsdl.wsdl#wsdl.interface(StatusListener)" />
<binding.jms initialContextFactory="fr.dyade.aaa.jndi2.client.NamingContextFactory"
jndiURL="scn://192.168.1.11:16400">
jndiURL="scn://192.168.1.13:16400">
<destination name="topic3" type="topic" />
</binding.jms>
</service>
<reference name="fireController">
<interface.wsdl interface="all-wsdl.wsdl#wsdl.interface(Emergency)" />
<binding.ws uri="http://192.168.1.13:9004/Emergency"
<binding.ws uri="http://192.168.1.12:9001/Emergency"
wsdlElement="http://demo.itemis/#wsdl.port(EmergencyService/EmergencyPort)" />
</reference>
<reference name="turnstile">
<interface.wsdl interface="all-wsdl.wsdl#wsdl.interface(Turnstile)" />
<binding.ws uri="http://192.168.1.11:9001/Turnstile"
<binding.ws uri="http://192.168.1.13:9000/Turnstile"
wsdlElement="http://demo.itemis/#wsdl.port(TurnstileService/TurnstilePort)" />
</reference>
<reference name="sprinkler">
<interface.wsdl interface="all-wsdl.wsdl#wsdl.interface(Sprinkler)" />
<binding.ws uri="http://192.168.1.12:9002/Sprinkler"
<binding.ws uri="http://192.168.1.14:9000/Sprinkler"
wsdlElement="http://demo.itemis/#wsdl.port(SprinklerService/SprinklerPort)" />
</reference>
</component>
<service name="StatusListener" promote="firecontrolcenter/statuslistener">
<binding.ws uri= "http://192.168.1.13:9000/StatusListener"/>
</service>
<service name="AlarmListener" promote="firecontrolcenter/alarmListener">
<binding.ws uri= "http://192.168.1.13:9005/AlarmListener"/>
<binding.ws uri= "http://192.168.1.12:9002/AlarmListener"/>
</service>
<service name="StatusListener" promote="firecontrolcenter/statuslistener">
<binding.ws uri= "http://192.168.1.12:9003/StatusListener"/>
</service>
</composite>
\ No newline at end of file
......@@ -48,21 +48,21 @@
</reference>
<reference name="turnstile">
<interface.wsdl interface="all-wsdl.wsdl#wsdl.interface(Turnstile)" />
<binding.ws uri="http://localhost:9001/Turnstile"
<binding.ws uri="http://localhost:9007/Turnstile"
wsdlElement="http://demo.itemis/#wsdl.port(TurnstileService/TurnstilePort)" />
</reference>
<reference name="sprinkler">
<interface.wsdl interface="all-wsdl.wsdl#wsdl.interface(Sprinkler)" />
<binding.ws uri="http://localhost:9002/Sprinkler"
<binding.ws uri="http://localhost:9008/Sprinkler"
wsdlElement="http://demo.itemis/#wsdl.port(SprinklerService/SprinklerPort)" />
</reference>
</component>
<service name="StatusListener" promote="firecontrolcenter/statuslistener">
<binding.ws uri= "http://localhost:9000/StatusListener"/>
</service>
<service name="AlarmListener" promote="firecontrolcenter/alarmListener">
<binding.ws uri= "http://localhost:9005/AlarmListener"/>
</service>
<service name="StatusListener" promote="firecontrolcenter/statuslistener">
<binding.ws uri= "http://localhost:9006/StatusListener"/>
</service>
</composite>
\ No newline at end of file
......@@ -37,8 +37,8 @@
<composite.file>firecontroller_localhost</composite.file>
<composite.file.local>firecontroller_localhost</composite.file.local>
<composite.file.deploy>firecontroller_deploy</composite.file.deploy>
<org.ow2.frascati.binding.uri.base>http://192.168.1.13:8767</org.ow2.frascati.binding.uri.base>
<!-- <org.ow2.frascati.binding.uri.base>http://localhost:8790</org.ow2.frascati.binding.uri.base> -->
<org.ow2.frascati.binding.uri.base>http://localhost:8769</org.ow2.frascati.binding.uri.base>
<!-- <org.ow2.frascati.binding.uri.base>http://192.168.1.12:8765</org.ow2.frascati.binding.uri.base> -->
</properties>
<dependencies>
......
......@@ -118,12 +118,13 @@ public class FireController implements AlarmListener, Emergency
logger.log(Level.SEVERE, "[FireControler service] Sprinkler 2 started successfully!");
}
if(sprinkler1!=null)
if(sprinkler3!=null)
{
sprinkler3.start();
logger.log(Level.SEVERE, "[FireControler service] Sprinkler 3 started successfully!");
}
logger.log(Level.SEVERE, "\n[FireControler service] Opening turnstiles...");
if(turnstile1!=null)
{
turnstile1.open();
......@@ -142,6 +143,7 @@ public class FireController implements AlarmListener, Emergency
logger.log(Level.SEVERE, "[FireControler service] Turnstile 3 opened successfully!");
}
logger.log(Level.SEVERE, "\n[FireControler service] Launching alarms...");
if(alarm1!=null)
{
alarm1.on();
......@@ -150,7 +152,7 @@ public class FireController implements AlarmListener, Emergency
if(alarm2!=null)
{
alarm1.on();
alarm2.on();
logger.log(Level.SEVERE, "[FireControler service] Alarm 2 launched successfully!");
}
......@@ -199,12 +201,13 @@ public class FireController implements AlarmListener, Emergency
logger.log(Level.SEVERE, "[FireControler service] Sprinkler 2 stopped successfully!");
}
if(sprinkler1!=null)
if(sprinkler3!=null)
{
sprinkler3.stop();
logger.log(Level.SEVERE, "[FireControler service] Sprinkler 3 stopped successfully!");
}
if(turnstile1!=null)
{
turnstile1.close();
......@@ -231,7 +234,7 @@ public class FireController implements AlarmListener, Emergency
if(alarm2!=null)
{
alarm1.off();
alarm2.off();
logger.log(Level.SEVERE, "[FireControler service] Alarm 2 stopped successfully!");
}
......
......@@ -39,7 +39,7 @@
<!-- turnstiles -->
<reference name="turnstile1">
<interface.wsdl interface="all-wsdl.wsdl#wsdl.interface(Turnstile)" />
<binding.ws uri="http://192.168.1.11:9001/Turnstile"
<binding.ws uri="http://192.168.1.13:9000/Turnstile"
wsdlElement="http://demo.itemis/#wsdl.port(TurnstileService/TurnstilePort)" />
</reference>
<reference name="turnstile2">
......@@ -52,7 +52,7 @@
<!-- sprinklers -->
<reference name="sprinkler1">
<interface.wsdl interface="all-wsdl.wsdl#wsdl.interface(Sprinkler)" />
<binding.ws uri="http://192.168.1.12:9002/Sprinkler"
<binding.ws uri="http://192.168.1.14:9000/Sprinkler"
wsdlElement="http://demo.itemis/#wsdl.port(SprinklerService/SprinklerPort)" />
</reference>
<reference name="sprinkler2">
......@@ -65,7 +65,7 @@
<!-- alarms -->
<reference name="alarm1">
<interface.wsdl interface="onoffdevice.wsdl#wsdl.interface(IOnOffDevicePortType)" />
<binding.ws uri="http://localhost:9002/AlarmControl"
<binding.ws uri="http://192.168.1.15:9000/AlarmControl"
wsdlElement="http://onoffdevice.common.demo.frascati.ow2.org/#wsdl.port(IOnOffDevice/IOnOffDevicePort)" />
</reference>
<reference name="alarm2">
......@@ -77,7 +77,7 @@
<reference name="twitter">
<interface.wsdl interface="Twitter.wsdl#wsdl.interface(ITwitterPortType)" />
<binding.ws uri="http://192.168.1.13:9007/Twitter"
<binding.ws uri="http://192.168.1.10:9000/Twitter"
wsdlElement="http://twitter.demo.frascati.ow2.org/#wsdl.port(ITwitter/ITwitterPort)" />
</reference>
......@@ -86,10 +86,10 @@
</component>
<service name="AlarmListener" promote="firecontroller/alarmListener">
<binding.ws uri= "http://192.168.1.13:9003/AlarmListener"/>
<binding.ws uri= "http://192.168.1.12:9000/AlarmListener"/>
</service>
<service name="Emergency" promote="firecontroller/emergency">
<binding.ws uri="http://192.168.1.13:9004/Emergency" />
<binding.ws uri="http://192.168.1.12:9001/Emergency" />
</service>
</composite>
......
<?xml version="1.0" encoding="UTF-8"?>
<notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:sca="http://www.osoa.org/xmlns/sca/1.0" xmi:id="_DxT90FZNEeGw1vvb5qUQew" type="Sca" measurementUnit="Pixel">
<styles xmi:type="notation:DiagramStyle" xmi:id="_DxVzAFZNEeGw1vvb5qUQew"/>
<element xmi:type="sca:DocumentRoot" href="firecontroller_deploy.composite#/"/>
</notation:Diagram>
......@@ -39,7 +39,7 @@
<!-- turnstiles -->
<reference name="turnstile1">
<interface.wsdl interface="all-wsdl.wsdl#wsdl.interface(Turnstile)" />
<binding.ws uri="http://localhost:9001/Turnstile"
<binding.ws uri="http://localhost:9007/Turnstile"
wsdlElement="http://demo.itemis/#wsdl.port(TurnstileService/TurnstilePort)" />
</reference>
<reference name="turnstile2">
......@@ -52,7 +52,7 @@
<!-- sprinklers -->
<reference name="sprinkler1">
<interface.wsdl interface="all-wsdl.wsdl#wsdl.interface(Sprinkler)" />
<binding.ws uri="http://localhost:9002/Sprinkler"
<binding.ws uri="http://localhost:9008/Sprinkler"
wsdlElement="http://demo.itemis/#wsdl.port(SprinklerService/SprinklerPort)" />
</reference>
<reference name="sprinkler2">
......@@ -65,7 +65,7 @@
<!-- alarms -->
<reference name="alarm1">
<interface.wsdl interface="onoffdevice.wsdl#wsdl.interface(IOnOffDevicePortType)" />
<binding.ws uri="http://localhost:9002/AlarmControl"
<binding.ws uri="http://localhost:9009/AlarmControl"
wsdlElement="http://onoffdevice.common.demo.frascati.ow2.org/#wsdl.port(IOnOffDevice/IOnOffDevicePort)" />
</reference>
<reference name="alarm2">
......@@ -78,7 +78,7 @@
<reference name="twitter">
<interface.wsdl interface="Twitter.wsdl#wsdl.interface(ITwitterPortType)" />
<binding.ws uri="http://localhost:9007/Twitter"
<binding.ws uri="http://localhost:9000/Twitter"
wsdlElement="http://twitter.demo.frascati.ow2.org/#wsdl.port(ITwitter/ITwitterPort)" />
</reference>
......
......@@ -31,11 +31,14 @@
<relativePath>..</relativePath>
</parent>
<artifactId>fire-detector-dicepe</artifactId>
<name>Fire Emergency Fire Detector CEP</name>
<properties>
<composite.file>fire-detector-dicepe</composite.file>
<composite.file.local>fire-detector-dicepe</composite.file.local>
<composite.file.deploy>fire-detector-dicepe</composite.file.deploy>
<composite.file>firedetector-dicepe_localhost</composite.file>
<composite.file.local>firedetector-dicepe_localhost</composite.file.local>
<composite.file.deploy>firedetector-dicepe_deploy</composite.file.deploy>
<org.ow2.frascati.binding.uri.base>http://localhost:8768</org.ow2.frascati.binding.uri.base>
<!-- <org.ow2.frascati.binding.uri.base>http://192.168.1.11:8766</org.ow2.frascati.binding.uri.base> -->
</properties>
<dependencies>
......@@ -73,32 +76,5 @@
</dependency>
</dependencies>
<profiles>
<profile>
<id>run</id>
<build>
<defaultGoal>exec:java</defaultGoal>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<configuration>
<workingDirectory>src/main/resources/</workingDirectory>
<mainClass>org.ow2.frascati.firedetector.launcher.FireEmergencyDiCEPeLauncher</mainClass>
<systemProperties>
<systemProperty>
<key>java.util.logging.config.file</key>
<value>${basedir}/src/test/resources/logging.properties</value>
</systemProperty>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
\ No newline at end of file
......@@ -35,7 +35,7 @@ import org.ow2.frascati.util.FrascatiException;
*/
public class FireEmergencyDiCEPeLauncher
{
public static final String COMPOSITE = "fire-detector-dicepe.composite";
public static final String COMPOSITE = "firedetector-dicepe_localhost.composite";
private static FraSCAti frascati;
private static Component composite;
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (C) 2008-2012 Inria, University of Lille -->
<!-- -->
<!-- This library is free software; you can redistribute it and/or -->
<!-- modify it under the terms of the GNU Lesser General Public -->
<!-- License as published by the Free Software Foundation; either -->
<!-- version 2 of the License, or (at your option) any later version. -->
<!-- -->
<!-- This library is distributed in the hope that it will be useful, -->
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -->
<!-- Lesser General Public License for more details. -->
<!-- -->
<!-- You should have received a copy of the GNU Lesser General Public -->
<!-- License along with this library; if not, write to the Free Software -->
<!-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -->
<!-- -->
<!-- Contact: frascati@ow2.org -->
<!-- -->
<!-- Author: Gwenael CATTEZ -->
<!-- -->
<!-- Contributors : -->
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:esper="org/ow2/frascati/esper"
xmlns:esperEvents="http://frascati.ow2.org/esper" xsi:schemaLocation="http://frascati.ow2.org/esper Event.xsd"
xmlns:frascati="http://frascati.ow2.org/xmlns/sca/1.1" xmlns:stmt="statements"
xmlns:lst="listeners" name="firedetector-dicepe_deploy">
<service name="esper-engine-service" promote="esper-engine/EsperEngine">
</service>
<service name="fire-detector-model-run" promote="fire-detector-model/run" />
<service name="fire-detector-model-service" promote="fire-detector-model/fire-detector-model-service">
<binding.ws uri="http://192.168.1.11:9001/FireDetectorModelService" />
</service>
<service name="run-temperature-gui" promote="temperature-listener-gui/run-temperature-gui"></service>
<service name="run-co-gui" promote="co-listener-gui/run-co-gui"></service>
<service name="run-controller-gui" promote="fire-detector-controller/run-controller-gui"></service>
<component name="esper-engine" constrainingType="esper:Engine">
<implementation.java class="org.ow2.frascati.esper.impl.EsperEngineImpl" />
<property name="events" type="esperEvents:Events">
<esperEvents:Events>
<esperEvents:Event esperEvents:event-type='CLASS'>org.ow2.frascati.esper.bean.COBean</esperEvents:Event>
<esperEvents:Event esperEvents:event-type='CLASS'>org.ow2.frascati.esper.bean.TemperatureBean</esperEvents:Event>
</esperEvents:Events>
</property>
</component>
<component name="fire-detector-model">
<implementation.java class="org.ow2.frascati.firedetector.model.FireDetectorModel" />
<reference name="esperEngine" target="esper-engine/EsperEngine"/>
<service name="fire-detector-model-service">
<interface.java interface="org.ow2.frascati.firedetector.model.FireDetectorModelItf" />
</service>
<service name="run">
<interface.java interface="java.lang.Runnable" />
</service>
</component>
<component name="temperature-statement">
<implementation.composite name="stmt:temperature-statement" />
</component>
<component name="temperature-alert-statement">
<implementation.composite name="stmt:temperature-alert-statement"/>
</component>
<component name="co-statement">
<implementation.composite name="stmt:co-statement" />
</component>
<component name="co-alert-statement">
<implementation.composite name="stmt:co-alert-statement" />
</component>
<component name="combined-alert-statement">
<implementation.composite name="stmt:combined-alert-statement" />
</component>
<component name="temperature-listener">
<implementation.composite name="lst:temperature-listener" />
</component>
<component name="co-listener">
<implementation.composite name="lst:co-listener" />
</component>
<component name="temperature-listener-gui">
<implementation.composite name="lst:temperature-listener-gui" />
<reference name="fireDetectorModel" target="fire-detector-model/fire-detector-model-service" />
</component>
<component name="co-listener-gui">
<implementation.composite name="lst:co-listener-gui" />
<reference name="fireDetectorModel" target="fire-detector-model/fire-detector-model-service" />
</component>
<component name="fire-detector-controller">
<implementation.composite name="lst:fire-detector-controller" />