-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from moosetechnology/metamodels-refactoring
Metamodels refactoring
- Loading branch information
Showing
87 changed files
with
1,846 additions
and
1,253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...3-Entities/FamixFortran03Comment.class.st → ...rtran03-Entities/FamixF03Comment.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
" | ||
Im a User-defined-type | ||
```fortran | ||
type [,attribute-list] :: name [(parameterized-declaration-list)] | ||
[parameterized-definition-statements] | ||
[private statement or sequence statement] | ||
[member-variables] | ||
contains | ||
[type-bound-procedures] | ||
end type | ||
``` | ||
" | ||
Class { | ||
#name : #FamixF03DerivedType, | ||
#superclass : #FamixFortranUserDefinedType, | ||
#traits : 'FamixTWithAttributes + FamixTWithMethods', | ||
#classTraits : 'FamixTWithAttributes classTrait + FamixTWithMethods classTrait', | ||
#category : #'Famix-Fortran03-Entities-Entities' | ||
} | ||
|
||
{ #category : #meta } | ||
FamixF03DerivedType class >> annotation [ | ||
|
||
<FMClass: #DerivedType super: #FamixFortranUserDefinedType> | ||
<package: #'Famix-Fortran03-Entities'> | ||
<generated> | ||
^ self | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
Class { | ||
#name : #FamixF03Entity, | ||
#superclass : #MooseEntity, | ||
#category : #'Famix-Fortran03-Entities-Entities' | ||
} | ||
|
||
{ #category : #meta } | ||
FamixF03Entity class >> annotation [ | ||
|
||
<FMClass: #Entity super: #MooseEntity> | ||
<package: #'Famix-Fortran03-Entities'> | ||
<generated> | ||
<abstract> | ||
^ self | ||
] | ||
|
||
{ #category : #testing } | ||
FamixF03Entity class >> isAbstract [ | ||
|
||
<generated> | ||
^ self == FamixF03Entity | ||
] | ||
|
||
{ #category : #meta } | ||
FamixF03Entity class >> metamodel [ | ||
|
||
<generated> | ||
^ FamixF03Model metamodel | ||
] | ||
|
||
{ #category : #testing } | ||
FamixF03Entity >> isAssociation [ | ||
|
||
<generated> | ||
^ false | ||
] | ||
|
||
{ #category : #testing } | ||
FamixF03Entity >> isBehavioural [ | ||
|
||
<generated> | ||
^ false | ||
] | ||
|
||
{ #category : #testing } | ||
FamixF03Entity >> isInheritance [ | ||
|
||
<generated> | ||
^ false | ||
] | ||
|
||
{ #category : #testing } | ||
FamixF03Entity >> isMethod [ | ||
|
||
<generated> | ||
^ false | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
" | ||
I an inheritance association | ||
" | ||
Class { | ||
#name : #FamixF03Inheritance, | ||
#superclass : #FamixF03Entity, | ||
#traits : 'FamixTInheritance', | ||
#classTraits : 'FamixTInheritance classTrait', | ||
#category : #'Famix-Fortran03-Entities-Entities' | ||
} | ||
|
||
{ #category : #meta } | ||
FamixF03Inheritance class >> annotation [ | ||
|
||
<FMClass: #Inheritance super: #FamixF03Entity> | ||
<package: #'Famix-Fortran03-Entities'> | ||
<generated> | ||
^ self | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
" | ||
I am a type-bound-procedure in a user-defined-type | ||
" | ||
Class { | ||
#name : #FamixF03Method, | ||
#superclass : #FamixF03Entity, | ||
#traits : 'FamixTMethod', | ||
#classTraits : 'FamixTMethod classTrait', | ||
#category : #'Famix-Fortran03-Entities-Entities' | ||
} | ||
|
||
{ #category : #meta } | ||
FamixF03Method class >> annotation [ | ||
|
||
<FMClass: #Method super: #FamixF03Entity> | ||
<package: #'Famix-Fortran03-Entities'> | ||
<generated> | ||
^ self | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Class { | ||
#name : #FamixF03Model, | ||
#superclass : #MooseModel, | ||
#traits : 'FamixF03TEntityCreator + FamixF77TEntityCreator + FamixFortranTEntityCreator', | ||
#classTraits : 'FamixF03TEntityCreator classTrait + FamixF77TEntityCreator classTrait + FamixFortranTEntityCreator classTrait', | ||
#category : #'Famix-Fortran03-Entities-Model' | ||
} | ||
|
||
{ #category : #accessing } | ||
FamixF03Model class >> allSubmetamodelsPackagesNames [ | ||
<generated> | ||
^ #(#'Moose-Query' #'Famix-Traits' #'Famix-FortranUDT-Entities' #'Famix-Fortran77-Entities') | ||
] | ||
|
||
{ #category : #meta } | ||
FamixF03Model class >> annotation [ | ||
<FMClass: #FamixF03Model super: #MooseModel> | ||
<package: #'Famix-Fortran03-Entities'> | ||
<generated> | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
" | ||
Fortran modules contain definitions that are made accessible to programs, procedures, and other modules through the use statement. They can contain data objects, type definitions, procedures, and interfaces. | ||
Modules allow controlled scoping extension whereby entity access is made explicit | ||
Modules automatically generate explicit interfaces required for modern procedures | ||
It is recommended to always place functions and subroutines within modules. | ||
### Example: | ||
```fortran | ||
module my_mod | ||
implicit none | ||
private ! All entities are now module-private by default | ||
public public_var, print_matrix ! Explicitly export public entities | ||
real, parameter :: public_var = 2 | ||
integer :: private_var | ||
contains | ||
! Print matrix A to screen | ||
subroutine print_matrix(A) | ||
real, intent(in) :: A(:,:) ! An assumed-shape dummy argument | ||
integer :: i | ||
do i = 1, size(A,1) | ||
print *, A(i,:) | ||
end do | ||
end subroutine print_matrix | ||
end module my_mod | ||
``` | ||
" | ||
Class { | ||
#name : #FamixF03Module, | ||
#superclass : #FamixF77ProgramUnit, | ||
#instVars : [ | ||
'#users => FMMany type: #FamixF03Use opposite: #used' | ||
], | ||
#category : #'Famix-Fortran03-Entities-Entities' | ||
} | ||
|
||
{ #category : #meta } | ||
FamixF03Module class >> annotation [ | ||
|
||
<FMClass: #Module super: #FamixF77ProgramUnit> | ||
<package: #'Famix-Fortran03-Entities'> | ||
<generated> | ||
^ self | ||
] | ||
|
||
{ #category : #adding } | ||
FamixF03Module >> addUser: anObject [ | ||
<generated> | ||
^ self users add: anObject | ||
] | ||
|
||
{ #category : #accessing } | ||
FamixF03Module >> users [ | ||
"Relation named: #users type: #FamixF03Use opposite: #used" | ||
|
||
<generated> | ||
<FMComment: 'All users of this module'> | ||
<derived> | ||
^ users | ||
] | ||
|
||
{ #category : #accessing } | ||
FamixF03Module >> users: anObject [ | ||
|
||
<generated> | ||
users value: anObject | ||
] |
12 changes: 6 additions & 6 deletions
12
...tities/FamixFortran03NamedEntity.class.st → ...n03-Entities/FamixF03NamedEntity.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
Class { | ||
#name : #FamixFortran03NamedEntity, | ||
#superclass : #FamixFortran03Entity, | ||
#name : #FamixF03NamedEntity, | ||
#superclass : #FamixF03Entity, | ||
#traits : 'FamixTNamedEntity', | ||
#classTraits : 'FamixTNamedEntity classTrait', | ||
#category : #'Famix-Fortran03-Entities-Entities' | ||
} | ||
|
||
{ #category : #meta } | ||
FamixFortran03NamedEntity class >> annotation [ | ||
FamixF03NamedEntity class >> annotation [ | ||
|
||
<FMClass: #NamedEntity super: #FamixFortran03Entity> | ||
<FMClass: #NamedEntity super: #FamixF03Entity> | ||
<package: #'Famix-Fortran03-Entities'> | ||
<generated> | ||
<abstract> | ||
^ self | ||
] | ||
|
||
{ #category : #testing } | ||
FamixFortran03NamedEntity class >> isAbstract [ | ||
FamixF03NamedEntity class >> isAbstract [ | ||
|
||
<generated> | ||
^ self == FamixFortran03NamedEntity | ||
^ self == FamixF03NamedEntity | ||
] |
12 changes: 6 additions & 6 deletions
12
...ities/FamixFortran03SourceAnchor.class.st → ...03-Entities/FamixF03SourceAnchor.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
Class { | ||
#name : #FamixFortran03SourceAnchor, | ||
#superclass : #FamixFortran03Entity, | ||
#name : #FamixF03SourceAnchor, | ||
#superclass : #FamixF03Entity, | ||
#traits : 'FamixTSourceAnchor', | ||
#classTraits : 'FamixTSourceAnchor classTrait', | ||
#category : #'Famix-Fortran03-Entities-Entities' | ||
} | ||
|
||
{ #category : #meta } | ||
FamixFortran03SourceAnchor class >> annotation [ | ||
FamixF03SourceAnchor class >> annotation [ | ||
|
||
<FMClass: #SourceAnchor super: #FamixFortran03Entity> | ||
<FMClass: #SourceAnchor super: #FamixF03Entity> | ||
<package: #'Famix-Fortran03-Entities'> | ||
<generated> | ||
<abstract> | ||
^ self | ||
] | ||
|
||
{ #category : #testing } | ||
FamixFortran03SourceAnchor class >> isAbstract [ | ||
FamixF03SourceAnchor class >> isAbstract [ | ||
|
||
<generated> | ||
^ self == FamixFortran03SourceAnchor | ||
^ self == FamixF03SourceAnchor | ||
] |
16 changes: 16 additions & 0 deletions
16
src/Famix-Fortran03-Entities/FamixF03SourceLanguage.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Class { | ||
#name : #FamixF03SourceLanguage, | ||
#superclass : #FamixF03Entity, | ||
#traits : 'FamixTSourceLanguage', | ||
#classTraits : 'FamixTSourceLanguage classTrait', | ||
#category : #'Famix-Fortran03-Entities-Entities' | ||
} | ||
|
||
{ #category : #meta } | ||
FamixF03SourceLanguage class >> annotation [ | ||
|
||
<FMClass: #SourceLanguage super: #FamixF03Entity> | ||
<package: #'Famix-Fortran03-Entities'> | ||
<generated> | ||
^ self | ||
] |
8 changes: 4 additions & 4 deletions
8
...s/FamixFortran03SourceTextAnchor.class.st → ...ntities/FamixF03SourceTextAnchor.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
...ties/FamixFortran03SourcedEntity.class.st → ...3-Entities/FamixF03SourcedEntity.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
Class { | ||
#name : #FamixFortran03SourcedEntity, | ||
#superclass : #FamixFortran03Entity, | ||
#name : #FamixF03SourcedEntity, | ||
#superclass : #FamixF03Entity, | ||
#traits : 'FamixTSourceEntity', | ||
#classTraits : 'FamixTSourceEntity classTrait', | ||
#category : #'Famix-Fortran03-Entities-Entities' | ||
} | ||
|
||
{ #category : #meta } | ||
FamixFortran03SourcedEntity class >> annotation [ | ||
FamixF03SourcedEntity class >> annotation [ | ||
|
||
<FMClass: #SourcedEntity super: #FamixFortran03Entity> | ||
<FMClass: #SourcedEntity super: #FamixF03Entity> | ||
<package: #'Famix-Fortran03-Entities'> | ||
<generated> | ||
<abstract> | ||
^ self | ||
] | ||
|
||
{ #category : #testing } | ||
FamixFortran03SourcedEntity class >> isAbstract [ | ||
FamixF03SourcedEntity class >> isAbstract [ | ||
|
||
<generated> | ||
^ self == FamixFortran03SourcedEntity | ||
^ self == FamixF03SourcedEntity | ||
] |
Oops, something went wrong.