A1262290480JmziV - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

A1262290480JmziV

Description:

A model comprises a set of packages that hold model elements, such as classes, ... The information contained in such a system is essentially metadata about the ... – PowerPoint PPT presentation

Number of Views:23
Avg rating:3.0/5.0
Slides: 17
Provided by: Lior9
Category:

less

Transcript and Presenter's Notes

Title: A1262290480JmziV


1
????? ?????? ????? ?????????
  • ?????? 5

2
Static Modeling - Packages
  • models the organization of the model itself.
  • A model comprises a set of packages that hold
    model elements, such as classes, state machines,
    and use cases.
  • Packages may contain other packages.
  • Every model element is owned by one package or
    one other element.

3
Meta Model
  • Imagine trying to find a book in a library
    without the help of a card catalog or
    computerized search interface. Could you do it?
    Perhaps, but it would be difficult at best. The
    information contained in such a system is
    essentially metadata about the books that are
    housed at that library or at other libraries. It
    provides you with vital information to help you
    find a particular book and aids you in making a
    decision as to whether that book might fit your
    needs.
  • What Is Metadata?Metadata is a component of data
    which describes the data. It is "data about
    data." Metadata describes the content, quality,
    condition, and other characteristics of data.
    Metadata describes the who, what, when, where,
    why, and how about a data set. Without proper
    documentation a data set is incomplete.

4
Meta Model
  • A metamodel tends to be described as a model
    which describes other models.
  • The toy known as Lego is the  most famous
    example.
  • Meta is the Greek word, which describes that
    which is hidden, behind all things.

5
(No Transcript)
6
Meta Model Java Language
  • import java.io.
  • public class MyClass extends YourClass
  • private int property
  • MyClass()
  • //construction code
  • public static void main (String args)
  • //piece of code
  • public String toString()
  • //piece of code

Save as .class
Save as .mdl
Save as .xml
Save as .mdb
7
Meta Model Java Language
  • ????? Class
  • public abstract class MyClass

8
Meta Model Java Language
  • Nested Classes
  • public abstract class MyClass
  • public class InnerClass

9
Meta Model Java Language
  • Class Features
  • public abstract class MyClass
  • MyClass() //constructor feature1
  • methodX() //methods feature2
  • int x //fields feature3

10
Meta Model Java Language
Class feature may be a regular class in case of
nested classes ormay be any of other feature
shown in the previous slide
11
Meta Model Java Language
Two kinds of class features fields (attributes)
and behavioral (methods)
12
Meta Model Java Language
Two kinds of behavioral features regular method
and constructorWhats next ? JavaClass is
composed of ClassFeatures
13
Meta Model Java Language
What about parameters ?
14
Meta Model Java Language
Parameters are of two types
15
Meta Model Java Language
How is javaClass connected to its descriptor ?
16
Meta Model Java Language
Yet missing JavaElement different that
classFeatures packages Mapping elements to
resources files, folders etc.
Write a Comment
User Comments (0)
About PowerShow.com