| 1 |
% Part of the MetaUML manual. |
| 2 |
% Copyright (C) 2005 Ovidiu Gheorghies |
| 3 |
% |
| 4 |
% This program is free software; you can redistribute it and/or |
| 5 |
% modify it under the terms of the GNU General Public License |
| 6 |
% as published by the Free Software Foundation; either version 2 |
| 7 |
% of the License, or (at your option) any later version. |
| 8 |
% |
| 9 |
% This program is distributed in the hope that it will be useful, |
| 10 |
% but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
% GNU General Public License for more details. |
| 13 |
% |
| 14 |
% You should have received a copy of the GNU General Public License |
| 15 |
% along with this program; if not, write to the Free Software |
| 16 |
% Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 17 |
|
| 18 |
% for f in `find . | grep '.*\.[1-9]'`; do echo $f; done |
| 19 |
|
| 20 |
input metauml; |
| 21 |
|
| 22 |
beginfig(1); |
| 23 |
Actor.user("User"); |
| 24 |
Actor.db("Database"); |
| 25 |
|
| 26 |
Usecase.dbquery("Query database"); |
| 27 |
Usecase.auth("Authentification"); |
| 28 |
Usecase.authA("Authentification by", "username, password"); |
| 29 |
Usecase.authB("Authentification by", "smartcard"); |
| 30 |
|
| 31 |
auth.w = user.human.e + (30,0); |
| 32 |
dbquery.s = auth.n + (0,30); |
| 33 |
db.human.w = dbquery.e + (30,0); |
| 34 |
|
| 35 |
authB.left - authA.right = 30; |
| 36 |
authB.midy = authA.midy; |
| 37 |
.5[authB.w, authA.e] = (auth.midx, auth.bottom - 50); |
| 38 |
|
| 39 |
drawObjects(user, auth, dbquery, db, authA, authB); |
| 40 |
|
| 41 |
clink(inheritance)(authA, auth); |
| 42 |
clink(inheritance)(authB, auth); |
| 43 |
clink(association)(auth, dbquery); |
| 44 |
clink(association)(user.human, auth); |
| 45 |
clink(association)(dbquery, db.human); |
| 46 |
endfig; |
| 47 |
|
| 48 |
end |