Emergency Resource Management and Coordination

Embed Size (px)

Citation preview

  • 8/8/2019 Emergency Resource Management and Coordination

    1/38

    EMERGENCY RESOURCE MANAGEMENT

    AND COORDINATION

    lker M. KarakaDoan K. Berkta

    Eren Algan

    MAY 20TH 2009, ANKARA

  • 8/8/2019 Emergency Resource Management and Coordination

    2/38

    AGENDA

    Introduction; Problem Statement Description of the domain Domain analysis Mapping of domain concepts to grammar Metamodel Definition Concrete Syntax M2M Transformation

    M2T Transformation Lessons learned and conclusions References

    2

  • 8/8/2019 Emergency Resource Management and Coordination

    3/38

    INTRODUCTION

    Aim is to come up with a domain-specificlanguage that would be of use in theresource management sub-domain of theemergency management information

    systems space

    Why this domain?1.Existing domain knowledge; partly

    overlaps with professional work done by agroup member

    2.Easy to map to and visualize real-worldscenarios

    3. Interesting, yet untouched3

  • 8/8/2019 Emergency Resource Management and Coordination

    4/38

    Emergency resource management andcoordination - example usage scenarios(Cont.'ed)

    Pandemic Influenza Scenario: The scenariofollows scenario models an Influenza Pandemicoutbreak. It includes such activities asrequesting medical facilities to take stock and

    determine what resources are readily availableand on hand (inventory of available supplies). Itincludes a wide range of resource messagessuch as requests for vaccines and antivirals, etc.

    Full use case available @ http://www.oasis-338

    open.org/committees/download.php/26806/EDXL_use_example_Influenza_06152005%20Lani

    GrahmRev.doc

    4

  • 8/8/2019 Emergency Resource Management and Coordination

    5/38

    5

  • 8/8/2019 Emergency Resource Management and Coordination

    6/38

    Emergency resource management andcoordination - example usage scenarios(Cont.'ed)

    More scenarios (showing the need forautomation of resource messaging to theextent possible) Fire Incidents

    Hurricanes

    Floods

    Earthquakes

    Man-made disasters

    6

  • 8/8/2019 Emergency Resource Management and Coordination

    7/38

    PROBLEM STATEMENT

    An industry standard on resourcemanagement specification is available.

    However the standard is limited since itdoes not provide solutions for composition

    (coordination) of Resource Managementmessages. Moreover, there is a need for tooling that

    support efficient utilization and coordinationof resources during emergencies.

    7

  • 8/8/2019 Emergency Resource Management and Coordination

    8/38

    DOMAIN DESCRIPTION

    EmergencyHappenings/incidents including natural

    disasters (earthquakes, floods, fires, ..), man-made disasters, etc.

    ResourceThings that are exchanged during

    emergencies: search and rescue teams,equipment, food, mobile shelters/tents, etc..

    Resource Management and CoordinationBeing able to coordinate (i.e. plan,

    collaborate, track) discovery, deployment,utilization and restoration (i.e. freeing up) ofresources during emergencies 8

  • 8/8/2019 Emergency Resource Management and Coordination

    9/38

    DOMAIN ANALYSIS

    In summary, we did

    exploit: Our existing domain

    knowledge and

    experience OASIS EDXL-RM

    specification/model OASIS WS-BPEL

    Specification, and meta-model

    9

  • 8/8/2019 Emergency Resource Management and Coordination

    10/38

    EMERGENCY MANAGEMENT DATAEXCHANGE LANGUAGE

    Defined by Organization for theAdvancement of StructuredInformation Standards (OASIS)Consortium (an official OASISrecommendation as of 1November 2008). OASIS

    Emergency Management TC hasother EM specifications.

    Focused on message definitionsonly; coordination of messagesis not defined

    CS587-Sp

    ring'09

    10

  • 8/8/2019 Emergency Resource Management and Coordination

    11/38

    EDXL-RM - ABSTRACT REFERENCEMODEL

    CS587-Sp

    ring'09

    11

  • 8/8/2019 Emergency Resource Management and Coordination

    12/38

    12

    CS587-Sp

    ring'09

    EDXL-RM - DOMAIN MODEL

  • 8/8/2019 Emergency Resource Management and Coordination

    13/38

    13

    CS587-Sp

    ring'09

    EDXL-RM - MESSAGE TYPES

  • 8/8/2019 Emergency Resource Management and Coordination

    14/38

    14

    CS587-Sp

    ring'09

    EDXL-RM - MESSAGE TYPES (CONT.ED)

  • 8/8/2019 Emergency Resource Management and Coordination

    15/38

    CS587-Sp

    ring'09

    RM

  • 8/8/2019 Emergency Resource Management and Coordination

    16/38

    DOMAIN ANALYSIS: RESULT

    16

    CS587-Sp

    ring'09

  • 8/8/2019 Emergency Resource Management and Coordination

    17/38

    DOMAIN GLOSSARY

    17

    CS587-Sp

    ring'09

  • 8/8/2019 Emergency Resource Management and Coordination

    18/38

    DOMAIN GLOSSARY (CONT.ED)

    18

    CS587-Sp

    ring'09

  • 8/8/2019 Emergency Resource Management and Coordination

    19/38

    19

    CS587-Sp

    ring'09

    INTEGRATED METAMODEL

  • 8/8/2019 Emergency Resource Management and Coordination

    20/38

    DSL GRAMMAR

    ResourceCoordinationFlow ::= (Process)*

    Process ::= ProcessName Activity IncidentRef ProcessID

    ProcessName ::= Identifier

    IncidentRef::= Identifier

    ProcessID ::= Identifier

    Flow ::= FlowName (Activity)*

    FlowName ::= IdentifierActivity ::= ActivityName Flow Sequence (AbstractRMMessage)? Reply Invoke Receive

    ActivityName ::= Identifier

    Sequence ::= SequenceName (Activity)*

    SequenceName ::= Identifier

    AbstractRMMessage ::= AbstractRMMessageName (Activity)* TemporalCoverageGeospatialCoverage AbstractRMMessageID (ResourceRef)* Confidentiality

    Reply ::= Target SourceInvoke ::= Target Source

    Receive ::= Target Source

    Target ::= Identifier

    Source ::= Identifier

    TemporalCoverage ::= TimeEntityName TimeEntity 20

  • 8/8/2019 Emergency Resource Management and Coordination

    21/38

    DSL GRAMMAR (CONT.ED)

    GeospatialCoverage ::= LocationEntity

    AbstractRMMessageID ::= Identifier

    ResourceRef::= Identifier

    Confidentiality ::= ConfidentialityType

    ConfidentialityType ::= Identifier

    RMBaseEntity ::= Incident TimeEntity Resource LocationEntity AttributeBag

    Incident ::= TemporalCoverage GeospatialCoverage

    TimeEntity ::= Time

    Resource ::= ResourceType

    LocationEntity ::= Location

    AttributeBag ::= (IncidentAttribute)*

    IncidentAttribute ::= IncidentAttributeName

    Time ::= IdentifierResourceType ::= Identifier

    Location ::= Identifier

    IncidentAttributeName ::= Identifier

    TimeEntityName ::= Identifier

    AbstractRMMessageName ::= Identifier21

  • 8/8/2019 Emergency Resource Management and Coordination

    22/38

    22

    METAMODEL based on MOF

  • 8/8/2019 Emergency Resource Management and Coordination

    23/38

    METAMODEL based on UML Profiling

    23

  • 8/8/2019 Emergency Resource Management and Coordination

    24/38

    CONCRETE SYNTAX

    24

  • 8/8/2019 Emergency Resource Management and Coordination

    25/38

    M2M TRANSFORMATION

    ATL

    Source metamodel ecore

    Target metamodel ecore

    ATL transformation rules Input model xpi (Emergency management)

    Output model xpi (BPEL)

    25

  • 8/8/2019 Emergency Resource Management and Coordination

    26/38

    26

    M2M TRANSFORMATION (Source MM)

  • 8/8/2019 Emergency Resource Management and Coordination

    27/38

    27

    M2M TRANSFORMATION (Part of Target MM)

    BPEL MM is actually

    much longer than this!

  • 8/8/2019 Emergency Resource Management and Coordination

    28/38

    M2M TRANSFORMATION: Sample ATLRules

    module AltDeneme1; -- Module Templatecreate Out : Bpel from IN : Emergency;

    rule ProcessMapping

    {

    from

    a : Emergency!Process

    to

    p : Bpel!Process (name

  • 8/8/2019 Emergency Resource Management and Coordination

    29/38

    rule InvokeMapping

    {from

    a : Emergency!Invoke

    to

    p : Bpel!Invoke

    (

    name

  • 8/8/2019 Emergency Resource Management and Coordination

    30/38

    rule ReplyMapping{

    from

    a : Emergency!Reply

    to

    p : Bpel!Reply

    (

    name

  • 8/8/2019 Emergency Resource Management and Coordination

    31/38

    31

    M2M TRANSFORMATION: ATL usingEclipse

  • 8/8/2019 Emergency Resource Management and Coordination

    32/38

    M2T TRANSFORMATION

    openArchitectureWareTemplate language for code generation Xpand

    Java code from ecore

    Example:

    import org.eclipse.emf.ecore.EObject;

    public interface Activity extends EObject {String getActivityId();void setActivityId(String value);String getActivityName();

    AbstractRMMessage getMessage();void setMessage(AbstractRMMessage value);

    } // Activity

    32

  • 8/8/2019 Emergency Resource Management and Coordination

    33/38

    LESSONS LEARNED ANDCONCLUSIONS

    DSL is actually something we have been usingfor years. The course made us to think againabout its meaning and uses.

    We have found Meta-Modeling conceptually nottoo easy to grasp. It takes a lot of time to startthinking in meta, while it is quite difficult toresist the temptation of doing modeling on thewrong level! (i.e. M1 in place of M2)

    Placing yourself in place of a tool developerhelps a lot with meta-modelingHow would a model based on my metamodel be of

    use to a tool developer?What would be the added value

    33

  • 8/8/2019 Emergency Resource Management and Coordination

    34/38

    LESSONS LEARNED ANDCONCLUSIONS (CONT.ED)

    Tooling seems problematic for Meta-Modeling.We have started out with a commercial tool

    called Enterprise Architect (EA). We also had atrial version of MagicDraw (MD).

    EA did not fulfill all the requirements of theassignments (especially transformation related).We started using a variety of tools (mostlyEclipse plug-ins like EMF, OAW, ATL).

    We had to perform export/import between thesetools; but there were inconsistencies between EAexport, MD export and OAW although they allsupport XMI.

    34

  • 8/8/2019 Emergency Resource Management and Coordination

    35/38

    LESSONS LEARNED ANDCONCLUSIONS (CONT.ED)

    If MDSD will be a success, serious toolsupport is an absolute need. UML diagramediting tooling that we have is not enough.

    But in the end, we can say Eclipse ModelingFramework , seems to work OK in itself;although there is plenty of bugs. But, we didnot come across any showstopper bugs afterwe switched to EMF.

    35

  • 8/8/2019 Emergency Resource Management and Coordination

    36/38

    LESSONS LEARNED ANDCONCLUSIONS (CONT.ED)

    Due complexity of our selected target meta-model (i.e. meta-model of WS-BPEL), we haddifficulty devising how it would be best to importmeta-concepts from it into our meta-model.

    Thus, in the end, our meta-model could best be

    described as influenced by BPEL metamodel.This has led to difficulties during model to model

    transformation.

    For model to model generation, because WS-BPEL is targeted for web-service based

    compositions, we had to go back to the meta-model and make changes.

    36

  • 8/8/2019 Emergency Resource Management and Coordination

    37/38

    LESSONS LEARNED ANDCONCLUSIONS (CONT.ED)

    For model to code generation, we wereplanning to actually generate BPEL code, butinstead we chose to generate java codebased on EMF Ecore.

    In the end, we believe that a meta-modelssuccess can best be verified by building atool that supports it. Better, the more toolingand accepted models are available based onthat meta-model, the more trust can have

    about it.

    37

  • 8/8/2019 Emergency Resource Management and Coordination

    38/38

    REFERENCES (Not exhaustive)

    Rui Chen, Raj Sharman, H Raghav Rao, and Shambhu J Upadhyaya. Coordination in

    Emergency Response Management. Communications Of The Acm, 51(5):8, Apr 2008 vol. 51

    OASIS WS-BPEL Technical Committee. Web services business process execution

    language version 2.0. pages 166, May 2007.

    OASIS Emergency Management TC. Emergency data exchange language resource

    messaging (edxl-rm) version 1.0. pages 1174, Nov 2009.

    Jim Steel, Renato Iannella, and Ho-Pun Lam. Using ontologies for decision support in

    resource messaging. Proceedings of the 5 International ISCRAM Conference, page 9, Apr

    2008

    David Aylward, Jim Bound, Bonnie Gorsic, Steve Gross, Walter LeGrand, Paul

    Mangione, Harrison Miles, Nelson Santini, Amin Soleimani, and John Yanosy. Findings

    and recommendations for mobile emergency communications interoperability (meci).

    NCOIC, page 152, Jan 2007.

    Eclipse ATL Project Model To Model Transformation, http://www.eclipse.org/m2m/atl

    OpenArchitectureWare, http://www.openarchitectureware.org/

    Markus Vlter, Bernd Kolb, Best Practices for Model-To-Text Transformations,

    Sep 2006

    38

    http://www.eclipse.org/m2m/atlhttp://www.eclipse.org/m2m/atl