-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add syntax examples for USE classes and associations
- Loading branch information
escribis
committed
Apr 12, 2016
1 parent
c10615b
commit 98fa0e1
Showing
5 changed files
with
136 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
model jungle_association_class | ||
|
||
class Monkey | ||
end | ||
|
||
class Snake | ||
end | ||
|
||
associationclass Hate between | ||
Monkey [*] role monkeys | ||
Snake [*] role snakes | ||
attributes | ||
reason : String | ||
intensity : Integer | ||
operations | ||
increase() | ||
end |
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 @@ | ||
model jungle_class | ||
|
||
class Yellow | ||
end | ||
|
||
abstract class Something | ||
end | ||
|
||
abstract class Fruit < Something | ||
end | ||
|
||
class Banana < Fruit, Yellow | ||
end | ||
|
||
class Orange < Fruit | ||
end |
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.