Skip to content

Commit

Permalink
Merge pull request #677 from moosetechnology/class-comments
Browse files Browse the repository at this point in the history
Only adding some class comments
  • Loading branch information
NicolasAnquetil authored Jan 8, 2024
2 parents 8daf1f3 + 3159250 commit c4cce8b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/Famix-UMLDocumentor/FamixUMLDocumentor.class.st
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
"
A Tool to generate an UML representation of Famix meta-models
Simple use:
## Simple use:
```
FamixUMLDocumentor new
model: FamixStModel ;
generate ;
exportWith: (FamixUMLPlantUMLBackend new).
```
API:
## API:
- `model:` adds a meta-model to export (entities of the meta-model will have an automatically assigned color)
several meta-models can be specified
- `model:color:` same as previous but manually assign a color to the entities of this meta-model
Expand All @@ -18,7 +18,15 @@ API:
- `beWithStubs` also export the super-classes and used traits of classes exported, even if these super-classes/traits or not part of the meta-models. These stubs have an automatically selected color.
- `beWithoutStubs` opposite of the preceding, default option
- `generate` creates an internal representation of a UML class diagram according to the options given before
- `exportWith:` exports the internal representation with the ""backend"" given (see `FamixUMLDummyBackend`)
- `exportWith:` exports the internal representation with the ""backend"" given
## Backends
The backends export the model in some specific format.
- `FamixUMLTextBackend`: exports a textual description of the model
- `FamixUMLPlantUMLBackend`: exports a description of the model in PlantUML format
- `FamixUMLMermaidBackend`: exports a textual description of the model in Mermaid format
- `FamixUMLRoassalBackend`: creates a Roassal representation of the model (work in progress)
"
Class {
#name : #FamixUMLDocumentor,
Expand Down
5 changes: 5 additions & 0 deletions src/Famix-UMLDocumentor/FamixUMLPlantUMLBackend.class.st
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"
I export the model in PlantUML format.
The result can be given to [PlantUML.com](https://plantuml.com) to generate a graphical representation of the class diagram
"
Class {
#name : #FamixUMLPlantUMLBackend,
#superclass : #FamixUMLTextBackend,
Expand Down

0 comments on commit c4cce8b

Please sign in to comment.