View
226
Download
1
Category
Preview:
Citation preview
A Service Oriented Simulation ArchitectureA Service Oriented Simulation Architecturefor Intelligent Building Managementfor Intelligent Building Management
Monica Monica DrăgoiceaDrăgoiceaLaurenŃiuLaurenŃiu BucurBucur
International Conference on Exploring Service Science 1.3 International Conference on Exploring Service Science 1.3
77--8 February 2013, Porto Portugal8 February 2013, Porto Portugal
LaurenŃiuLaurenŃiu BucurBucurMonica Monica PătraşcuPătraşcu
Department of Automatic Control and Systems EngineeringDepartment of Automatic Control and Systems EngineeringUniversitUniversity y PolitehnicaPolitehnica of Bucharestof Bucharest
SummarySummary
Smarter BuildingsSmarter BuildingsSystem Architecture System Architecture –– service orientedservice oriented
Use casesUse casesValue coValue co--creation through simulationcreation through simulation
ExampleExample
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 2
ExampleExampleEarthquake EMS Earthquake EMS –– ((VranceaVrancea, Romania), Romania)
Policy definition, simulationPolicy definition, simulation
ConclusionsConclusionsFurther developmentsFurther developments
Use cases Use cases extension extension
The Smarter BuildingThe Smarter Building
A system of systems within a larger ecosystemA system of systems within a larger ecosystem
Critical systemsemergency protocols
EmergencyIntervention
Warning dispersionand panic control
Trafficcontrol
Portal -Syndicating
BuildingIntelligence
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 3
Software intensivesub-systems
Security
AccessFire
control
Elevators
Lighting
Ventilation
Energy
Communication
Distributed integration ofelectronic, mechanical, softwareand electrical engineering
System Architecture System Architecture –– www.fcint.rowww.fcint.ro
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 4
Smarter Building Smarter Building –– a Service Oriented Approacha Service Oriented Approach
Enviroment Manager(Web Application)
Policy Editor(Desktop Application)
Smart BuildingController
(WCF Service)
Device ControlWeb Services
1
3
6
Simulation
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 5
Simulation Engine(RESTful Service)
Report Generation(RESTful Service)
Simulation Console(Web Application)
2
4
5
SimulationBridge -
Simulated Devices
(WCF Service)
7
Smarter Building Smarter Building –– Simulation FrameworkSimulation Framework
based on a Smart Building Simulator
goals:
testing the response of a Smart Building Controller
estimating the utility bill (real / virtual building)
uses simulation scenariosuses simulation scenarios
time ordered events
virtual devices
real devices
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 6
Simulation Console(Web Application)
Simulation Engine(RESTful web service)
Smart Building Controller(WCF web service)
Report Generation(RESTful web service)
4
2
5
Smart Building Simulator
System usability System usability –– use casesuse cases
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 7
Case study Case study –– EMS for EarthquakesEMS for Earthquakes
www.inpf.ro
http://earthquake.usgs.gov/earthquakes/m
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 8
http://earthquake.usgs.gov/earthquakes/map/
EMS for Earthquakes EMS for Earthquakes –– system integrationsystem integration
integrating integrating earthquake and EMS in earthquake and EMS in Smarter Smarter BuildingsBuildings
Portal -
Syndicating
SBC
Smart Building Controller
Air Condition (web service)
Lighting (web service)
2
2
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 9
Syndicating
Building
Intelligence:
Environment
Manager
(Web application)
UserSmart Building Controller
(WCF Web Service)
Policy Repository
Policy 1
Policy 2
...
Policy n
1 2
2
Simulation
Engine
(RESTful
service)
3
Critical system
emergency
protocol
(Web service)
4
Damping Controller
(web service)
Fire Control (web service)
Elevator control
(web service)
2
Simulation framework Simulation framework –– working definitionsworking definitions
A simulation scenario A simulation scenario is is a perspective created in the a perspective created in the Simulation Console by the composition of:Simulation Console by the composition of:
a a set of time ordered events set of time ordered events that are processed by the SE and that are processed by the SE and visualized in the SC in the timelinevisualized in the SC in the timeline
a a set of virtual devices (set of virtual devices (instances of virtual device classes instances of virtual device classes defined by the user)defined by the user)
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 10
defined by the user)defined by the user)
a a set of real devices set of real devices (installed at the facility level, recognized (installed at the facility level, recognized and controlled by the SBC through the corresponding web and controlled by the SBC through the corresponding web services)services)
Simulation framework Simulation framework –– working definitionsworking definitions
A scheduleA schedule is is an executable an executable instruction setinstruction set for for the control of physical devices and device groups the control of physical devices and device groups
actions are associated with certain time intervalsactions are associated with certain time intervals(e.g. days of the week)
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 11
(e.g. days of the week)
A policyA policy is a set of rules:is a set of rules:
ONON (Trigger) (Trigger) IFIF (Condition) (Condition) THENTHEN {Block of {Block of
actions} actions} ELSEELSE {Block of actions}{Block of actions}
Simulation framework Simulation framework –– working definitionsworking definitions
Policy examples:Policy examples:
Low Low level: level: “If earthquake warning is active, “If earthquake warning is active, stop all elevators at closest floor.”stop all elevators at closest floor.”
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 12
High High level: level: “If earthquake alarm active and “If earthquake alarm active and occupancy < 40% and security occupancy < 40% and security understaffed, then apply emergency understaffed, then apply emergency evacuation protocol number 6.”evacuation protocol number 6.”
Working stepsWorking steps
SBC ready to
receive
EarthquakeAlarm
events
FCINT Simulation
Engine imported
the
EarthquakeAlarm
connection
established
Event types
imported
SBC ready to
receive
EarthquakeAlarm
events
FCINT Simulation
Engine imported
the
EarthquakeAlarm
connection
established
Event types
imported
SBC ready to
receive
EarthquakeAlarm
events
FCINT Simulation
Engine imported
the
EarthquakeAlarm
connection
established
Event types
imported
SBC ready to
receive
EarthquakeAlarm
events
FCINT Simulation
Engine imported
the
EarthquakeAlarm
connection
established
Event types
imported
SBC ready to
receive
EarthquakeAlarm
events
FCINT Simulation
Engine imported
the
EarthquakeAlarm
FCINT Policy
Management
System
policy created and saved
SBC readyto executethe policy
SBC ready to
receive
EarthquakeAlarm
events
FCINT Simulation
Engine imported
the
EarthquakeAlarm
FCINT Policy
Management
System
policy created and saved
SBC readyto executethe policy
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 13
eventsEarthquakeAlarmimported
FCINT Simulation
Console ready with
an empty scenario
eventsEarthquakeAlarmimported
FCINT Simulation
Console ready with
an empty scenario
imported
FCINT Simulation
Console ready with
an empty scenarioFCINT Simulation
Bridge ready with
virtual devices
SBC ready to send
commands to the
Simulation Bridge
virtual devices
imported
FCINT Simulation
Console ready with
an empty scenarioFCINT Simulation
Bridge ready with
virtual devices
SBC ready to send
commands to the
Simulation Bridge
virtual devices
eventsEarthquakeAlarm
FCINT Simulation
Console ready with
an empty scenarioFCINT Simulation
Bridge ready with
virtual devices
Virtual devices ready to receive commands
eventsEarthquakeAlarm
FCINT Simulation
Console ready with
an empty scenarioFCINT Simulation
Bridge ready with
virtual devices
Virtual devices ready to receive commands
Case studyCase study
Testing the response of a Smart Building Controller – steps:
define the events in the simulation scenario to be sent to the Smart Building Controller - as external events corresponding to the events list defined in the SBC
define the simulation scenario in the Simulation Console -including real devices in the building infrastructure recognized including real devices in the building infrastructure recognized and controlled by the SBC and models of the virtual devices through the Simulation Bridge
define the policies and schedules for the Smart Building Controller operation, through the Policy Editor
execute simulation scenario in the Simulation Console and inspect the SBC’s execution logs
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 14
Case study Case study –– (1) define events(1) define events
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 15
Case study Case study –– define a simulation scenariodefine a simulation scenario
Q: What do we want to simulate ?
Q: Given a set of rules that specify the behavior of the SBC in a real EarthquakeAlarm situation, how to test this scenario without a real alarm occurring ?
A: We use the FCINT Simulation framework to create a A: We use the FCINT Simulation framework to create a scenario in the Simulation Engine.
Idea: Have the Simulation engine “pump” EarthquakeAlarms to the SBC
International Conference on Exploring Service Science 1.3 16
Case study Case study –– define a simulation scenariodefine a simulation scenario
there are no physical devices to control in case of an EarthquakeAlarm event, yet installed in the SBC
we use the Simulation Bridge to create virtual devices for the policies to act upon
virtual devices are treated by the SBC the same way as real devices, via the web services interfacedevices, via the web services interface
use the Simulation Bridge to create, expose and allow the SBC to control the following virtual devices:
GasSwitch (state: int = 0/1)
Light1, Light2, Light3 (state: int = 0/1)
EarthquakeAlarm (running: int = 0/1)
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 17
Case study Case study –– (2) define simulation scenario(2) define simulation scenario
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 18
Case study Case study –– define a simulation scenariodefine a simulation scenario
System status
Simulation Engineimport the
EarthquakeAlarm
SBC ready to receiveEarthquakeAlarm events
connectionestablished
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 19
EarthquakeAlarmevent
Simulation Consoleready with an empty
scenario
Simulation Bridge readywith virtual devices
SBC ready to sendcommands to theSimulation Bridgevirtual devices
Event typesimported
list external events inEventType window
Case study Case study –– create policies and rulescreate policies and rules
use the Policy editor to create the EarthquakeTestPolicy:
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 20
Case study Case study –– create scenarios to simulatecreate scenarios to simulate
create 3 earthquake alarm scenarios to test the EarthquakeTestPolicy:
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 21
Case study Case study –– add eventsadd events
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 22
Case study Case study –– add eventsadd events
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 23
Case study Case study –– execute scenarioexecute scenario
step by step execution in the Simulation Console main window
inspection of the SBC Console – was the event received ?
inspection of the virtual device status in the Simulation BridgeBridge
were the actions in the policy executed on the simulated devices ?
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 24
Case study Case study –– execute scenario execute scenario (Test #2)(Test #2)
Event 2 : At simulation time 14:00, an earthquake alarm having: Magnitude_min=3, Time_to_earthquake=5, Geographical_Area=Vrancea is processed
Desired behaviour: Turn off the lights, leave EarthquakeAlarm and GasSwitch unchanged
Prior to execution, we manually set: Light1,2,3. state=1, EarthquakeAlarm=0 and GasSwitch=1;
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 25
Case study Case study –– execute scenario execute scenario (Test #2)(Test #2)
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 26
ConclusionConclusion
an extensible and flexible service-oriented approach
a unitary description of devices based on web services
it supports development of a larger service ecosystem dedicated to Smarter Buildings
ControlControl
Monitoring
Utility cost estimation
Testing
Training
more use cases to be developed
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 27
Software intensivesub-systems
Security
AccessFire
control
Elevators
Lighting
Ventilation
Energy
Communication
Distributed integration ofelectronic, mechanical, softwareand electrical engineering
Critical systemsemergency protocols
EmergencyIntervention
Warning dispersionand panic control
Trafficcontrol
Portal -Syndicating
BuildingIntelligence
Thank you!Thank you!
International Conference on Exploring Service Science 1.3 7-8 February 2013, Porto, Portugal 28
Recommended