a csp approach for meta model instantiation
play

A CSP Approach for Meta Model Instantiation Adel Ferdjoukh , - PowerPoint PPT Presentation

A CSP Approach for Meta Model Instantiation Adel Ferdjoukh , Anne-Elisabeth Baert, Annie Chateau, R emi Coletta and Cl ementine Nebut Montpellier, France null A CSP Approach for Meta Model Instantiation Summary 1 Model Driven Engineering


  1. A CSP Approach for Meta Model Instantiation Adel Ferdjoukh , Anne-Elisabeth Baert, Annie Chateau, R´ emi Coletta and Cl´ ementine Nebut Montpellier, France

  2. null A CSP Approach for Meta Model Instantiation Summary 1 Model Driven Engineering and Model Generation 2 Our approach: CSP for Model Generation 3 Experiments 4 Conclusion -2-

  3. null A CSP Approach for Meta Model Instantiation Model Driven Engineering and Model Generation Summary 1 Model Driven Engineering and Model Generation 2 Our approach: CSP for Model Generation 3 Experiments 4 Conclusion -3-

  4. null A CSP Approach for Meta Model Instantiation Model Driven Engineering and Model Generation State of the art Model Driven Engineering (MDE) A recent paradigm recommending the intensive use of structured models [ ? ] . A model is defined by a meta model. -4-

  5. null A CSP Approach for Meta Model Instantiation Model Driven Engineering and Model Generation State of the art Models,meta models and OCL constraints -5-

  6. null A CSP Approach for Meta Model Instantiation Model Driven Engineering and Model Generation State of the art Models,meta models and OCL constraints -5-

  7. null A CSP Approach for Meta Model Instantiation Model Driven Engineering and Model Generation State of the art Models,meta models and OCL constraints -5-

  8. null A CSP Approach for Meta Model Instantiation Model Driven Engineering and Model Generation State of the art Models,meta models and OCL constraints -5-

  9. null A CSP Approach for Meta Model Instantiation Model Driven Engineering and Model Generation State of the art Models,meta models and OCL constraints -5-

  10. null A CSP Approach for Meta Model Instantiation Model Driven Engineering and Model Generation State of the art Models,meta models and OCL constraints -5-

  11. null A CSP Approach for Meta Model Instantiation Model Driven Engineering and Model Generation State of the art Model Generation Why generating models ? Automatic validation of meta models. Obtain test data for model transformations. -6-

  12. null A CSP Approach for Meta Model Instantiation Model Driven Engineering and Model Generation State of the art Model Generation Why generating models ? Automatic validation of meta models. Obtain test data for model transformations. -6-

  13. null A CSP Approach for Meta Model Instantiation Model Driven Engineering and Model Generation State of the art Model Generation Why generating models ? Automatic validation of meta models. Obtain test data for model transformations. -6-

  14. null A CSP Approach for Meta Model Instantiation Model Driven Engineering and Model Generation State of the art Model Generation Generation process expected properties Scalability : Generation process must scale to large models and meta models. Validity. Flexibility. Diversity. -7-

  15. null A CSP Approach for Meta Model Instantiation Model Driven Engineering and Model Generation State of the art Model Generation Generation process expected properties Scalability. Validity : Models must conform to a given meta model and respect OCL constraints. Flexibility. Diversity. -7-

  16. null A CSP Approach for Meta Model Instantiation Model Driven Engineering and Model Generation State of the art Model Generation Generation process expected properties Scalability. Validity. Flexibility : It should be easy to parameterize the generation process in order to add other constraints. Diversity. -7-

  17. null A CSP Approach for Meta Model Instantiation Model Driven Engineering and Model Generation State of the art Model Generation Generation process expected properties Scalability. Validity. Flexibility. Diversity : Models should be as representative as possible of the meta model. -7-

  18. null A CSP Approach for Meta Model Instantiation Model Driven Engineering and Model Generation CSP for Model Generation Using CSP to Generate Models Existing CSP approach Cabot’s et al. CSP approach [ ? , ? ] . So why do we choose a CSP approach ? Lack of flexibility of other approaches. CSP allows taking into account OCL constraints. Existing CSP approach does not scale. -8-

  19. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation Summary 1 Model Driven Engineering and Model Generation 2 Our approach: CSP for Model Generation 3 Experiments 4 Conclusion -9-

  20. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation CSP for Model Generation -10-

  21. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation CSP for Model Generation -10-

  22. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation CSP for Model Generation -10-

  23. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation CSP for Model Generation -10-

  24. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation CSP for Model Generation -10-

  25. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation CSP for Model Generation -10-

  26. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation First step: Meta Model to CSP transformation -11-

  27. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation Elements of a meta model -12-

  28. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation Elements of a meta model -12-

  29. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation Elements of a meta model -12-

  30. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation Class Modelling Classes modelling Class Instances One variable per instance. Domains including 0 for non-instantiated elements. Contiguous domains to distinguish between different classes. Root class has only one instance. Features One variable per each instance feature. Constraints Gcc on all classes instances to make all variables different except when it is 0. -13-

  31. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation Class Modelling Classes modelling: Example n instance variables. ( D ( Arc ) = [0 , 1 , . . . , n ] ) n feature variables (Weight). ( D ( Weight ) = [ − 100 , 100]) Gcc ( [variables], [values], [0 , . . . , 0] , [ m , 1 , . . . , 1]) -14-

  32. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation Class Modelling Classes modelling: Example n instance variables. ( D ( Arc ) = [0 , 1 , . . . , n ] ) n feature variables (Weight). ( D ( Weight ) = [ − 100 , 100]) Gcc ( [variables], [values], [0 , . . . , 0] , [ m , 1 , . . . , 1]) -14-

  33. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation Class Modelling Classes modelling: Example n instance variables. ( D ( Arc ) = [0 , 1 , . . . , n ] ) n feature variables (Weight). ( D ( Weight ) = [ − 100 , 100]) Gcc ( [variables], [values], [0 , . . . , 0] , [ m , 1 , . . . , 1]) -14-

  34. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation Class Modelling Classes modelling: Example n instance variables. ( D ( Arc ) = [0 , 1 , . . . , n ] ) n feature variables (Weight). ( D ( Weight ) = [ − 100 , 100]) Gcc ( [variables], [values], [0 , . . . , 0] , [ m , 1 , . . . , 1]) -14-

  35. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation Reference Modelling Reference Modelling Variables Let r ( source → target ) a reference between two classes source and target . Pointer variables from source to target . D ( r ) = D ( target ). Constraints One Gcc constraint on root class of the meta model. One constraint: source = 0 → Reference = 0. -15-

  36. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation Reference Modelling Reference Modelling: Example ”pointer” variables from Place to Arc. ( D ( outgoing ) = D ( Arc ) ) One Gcc constraint on meta model root class references. One constraint: Place = 0 → outgoing = 0. -16-

  37. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation Reference Modelling Reference Modelling: Example ”pointer” variables from Place to Arc. ( D ( outgoing ) = D ( Arc ) ) One Gcc constraint on meta model root class references. One constraint: Place = 0 → outgoing = 0. -16-

  38. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation Reference Modelling Reference Modelling: Example ”pointer” variables from Place to Arc. ( D ( outgoing ) = D ( Arc ) ) One Gcc constraint on meta model root class references. One constraint: Place = 0 → outgoing = 0. -16-

  39. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation Reference Modelling Reference Modelling: Example ”pointer” variables from Place to Arc. ( D ( outgoing ) = D ( Arc ) ) One Gcc constraint on meta model root class references. One constraint: Place = 0 → outgoing = 0. -16-

  40. null A CSP Approach for Meta Model Instantiation Our approach: CSP for Model Generation OCL modelling Second step: OCL to CSP transformation -17-

Recommend


More recommend