Lighting+Control V1.1[1]...Use‐Case Name Timer Control Brief Description Provide a function to...
Transcript of Lighting+Control V1.1[1]...Use‐Case Name Timer Control Brief Description Provide a function to...
4/11/2011
1
1
Part One Business Modeling
Business Process Model
4/11/2011
2
Business Process Model Sound Surveillance
Video Surveillance Video Surveillance
Timing Control
Lighting Control
4/11/2011
3
2
Part TwoRequirements Modeling
Use Case Diagram
System Boundary
4/11/2011
4
non‐functional requirements
1. The system should be open source.
Non‐functional requirements
2. Bugs/function‐point < 5
3. Available time >99%
4. The system should adopt the OGC sensor.
Use‐Case Name Manually Control
Brief Description Provide a control interface for user to close all lights
Use Case Specification
Brief Description Provide a control interface for user to close all lights
Flow of Event Basic flow:1. User presses the “lights off” button2. User confirms this instruction3. Turn off all the lights and give feedback to user.
Use‐Case Scenario The user presses the “lights off” button, then the systemwill ask user to confirm this instruction After user will ask user to confirm this instruction. After user confirming, the system turn off all the lights of the house, and give feedback to user.
4/11/2011
5
Use‐Case Name Sound Control
Brief Description Provide a function to enable the system to control the lights according to signal of sound sensors
Use Case Specification
lights according to signal of sound sensors.
Flow of Event Basic flow:1. Sound sensors send the signal from rooms2. The system turn on the lights of rooms.Alternative Flow:1. If the signal is from guest room, turn on the lights of
guest room2. If the signal is from bedroom, turn on the lights of
bedroombedroom3. If the signal is from bathroom, turn on the lights of
bathroom4. If the signal is from kitchen, turn on the lights of
kitchen
Use‐Case Scenario
The system gets the signal, and check the signal is from which room(guest room, bedroom, bathroom ,or kitchen), then the system opens the lights of that room
Use‐Case Name Video Control
Brief Description Provide a function to enable the system to control the
Use Case Specification
Brief Description Provide a function to enable the system to control the lights according to signal of video sensors.
Flow of Event Basic flow:1. Video sensor send the signal about person coming in.2. The system open all the lights of house.Alternative Flow:1. After the system gets the signal from video sensor, the
system finds the person inside the house, then ignores this signal.
Use‐Case Scenario The video sensor detect the person is coming in, then it send the signal to video control. Video control check whether there is person inside the room, if not, opens all the lights.
4/11/2011
6
Use‐Case Name Timer Control
Brief Description Provide a function to control the lights according to the
Use Case Specification
Brief Description Provide a function to control the lights according to the time.
Flow of Event Basic flow:1. System clock send time to the timer control system2. The system check the time and turn on/off all the
lightsAlternative Flow:1. If the time value is 7am, turn on all the lights. e e a ue s 7a , u o a e g s2. If the time value is midnight, turn off all the lights
Use‐Case Scenario The timer control system gets the time from system clock, and check the value. If the time is 7am, turn on all the lights, and if the time is midnight, turn off all the lights.
Use‐Case Name Light on
Use Case Specification
Brief Description Provide a function to turn on the light
Flow of Event Basic flow:1. Find and check the light2. If it is off, turn it on
Use‐Case Scenario The light on function is used to turn on a certain light. If the light is on do nothing other ise turn it onthe light is on, do nothing; otherwise, turn it on.
4/11/2011
7
Use‐Case Name Light Off
B i f D i i P id f i ff h li h
Use Case Specification
Brief Description Provide a function to turn off the light
Flow of Event Basic flow:1. Find and check the light2. If it is on, turn it off
Use‐Case Scenario The light on function is used to turn on a certain light. If the light is off do nothing; otherwise turn it offthe light is off, do nothing; otherwise, turn it off.
3
Part Three Service Modeling
Services architecture, Contract, Interface
4/11/2011
8
Services Architecture
Services Contract
4/11/2011
9
Message Diagram
Service Interfaces
4/11/2011
10
Participant Diagram
Software Components Deployment
4/11/2011
11
Sequence Diagram (Timing Control)
4
Part Four Platform Realization
Web Service Implementation
4/11/2011
12
Transformation module to create WSDL, XSD and Transformation module to create WSDL, XSD and BPEL from SoaML.
BPEL Transformation
4/11/2011
13
Export to WSDL file
WSDL Details
4/11/2011
14
Run Web Service Choose the suitable Web Service Frameworks;Choose the suitable Web Service Frameworks;
Choose the suitable Web Server;
Use WSDL to generate Web Service Code;
Web Service Framework: Where automated, decentralized services can be Where automated, decentralized services can be defined, deployed, manipulated and evolved in an automated fashion.
Criteria of Web Service Framework:
ease of development, deployment, licensing policies, error handling capabilities, performance, integration with IDEs, standards compliance, memory footprint, interoperability etc
4/11/2011
15
Comparison of Web Service FrameworksFeature Axis 1.x Axis 2 CXF Glue JBossWS XFire Metr
o
OracleAS 10g
Basic Profile 1.1 Compliant X X X X X X X X
Easily Create Services from
POJOs
X X X X X X X X
Open Source X X X X X X
RPC‐Encoding X X X X X
Spring Support X X X X X
REST Support X X X X
IDEA Plugins X X X X Ant
Eclipse Plugins X (STP) X X X Ant
NetBeans Plugins X Ant
JDeveloper X
Hot Deployment X X X ? X X
Soap 1.1 X X X X X X X X
Soap 1 2 X X X X X X X X Soap 1.2 X X X X X X X X
Streaming XML (StAX based) X X X X
WSDL 1.1 ‐>Code (Client) X X X X X X X X
WSDL 1.1 ‐>Code (Server) X X X X X X X X
WSDL 2.0 ‐>Code (Client) X ? ? ? ?
WSDL2.0 ‐>Code (Server) X ? ? ? ?
Client‐side Asynchrony X X X X With BPEL
Server‐side Asynchrony X X X X With BPEL
Policy‐driven code generation X X
Web Server Web server is “a computer program that is responsible for p p g paccepting HTTP requests from clients (user agents such as web browsers), and serving them HTTP responses along with optional data contents, which usually are web pages such as HTML documents and linked objects (images, etc.)”.
There are several well known application web servers, like Apache http server, Apache Tomcat, AppWebWeb Server, Resin Server, Glassfish, IBM Lotus Domino service, Internet Information Services, Sun Java System Web Server.
4/11/2011
16
Overview Comparison of Web Servers
Server Developed by Cost (USD) Open source Software license
Apache HTTP Server Apache Software
Foundation
Free Yes Apache License
Apache Tomcat Apache Software Free Yes Apache License
Foundation
AppWebWeb Server Embedthis Software Free and Commercial
Versions
Yes GPL
Caucho Resin Server Caucho Free Yes GPL
GlassFish Sun Microsystems Free RTU, Support
Subscription plans from Sun
‐ Sun supported version
comes with additional
Enterprise Manager
Yes CDDL and GPL and
Sun support
entitlement license
IBM Lotus Domino
HTTP service
IBM Included with IBM Lotus
Domino
No proprietary
Internet Information
Services (IIS)
Microsoft Included with newer
Windows products
No proprietary
Sun Java System Web
Server
Sun Microsystems Free Yes BSD
WebLogic Oracle Corporation
(formerly BEA
Systems)
$9000+ No proprietary
Reference SoaML Designer Tutorial http://rd.softeam.com/demos/soamlp
Modeling SOA architectures http://www.modeliosoft.com/technologies/technologies‐soa.html
Modelio Tutorials http://www.modeliosoft.com/tutorial.html
Modelio Video Tutorials http://www.modeliosoft.com/tutorials/modelio‐video‐tutorials.html
Generating Java code from a WSDL document http://teaching‐2.cs.uml.edu/~heines/tools/JRun4/docs/html/Programmers_Guide/ws_wsdl5.html
Generating code from WSDL Generating code from WSDL http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.stp.sc.doc/tasks/generating_code.ht
ml
Modelio WSDL Designer‐‐Generate your web services from your models http://www.modeliosoft.com/modules/modelio‐wsdl‐designer.html
Web Service Framework Comparison http://wiki.apache.org/ws/StackComparison
Web Server Comparison http://en.wikipedia.org/wiki/Comparison_of_web_server_software