material/Examensarbeit Spittank/source/imgs/wrapper/klassen/multimedia.mp

29 lines
706 B
Text

input metauml;
beginfig(1);
% Klassen
EClass.Medium(iAbstractClass)("Medium")
("zPfad")
("+Medium(pPfad)", "+gibWieder()", "+loesche()", "+nimmAuf(pDauer)", "+nimmManuellAuf()", "+pfad()");
Class.Audio("Audio")()("+Audio(pPfad)");
Class.Video("Video")()("+Video(pPfad)");
Class.Foto("Foto")()("+Foto(pPfad)");
% Modul
Package.Multimedia("Multimedia")(Medium, Audio, Video, Foto);
% Objekte anordnen
topToBottom(30)(Medium, Video);
leftToRight(30)(Audio, Video, Foto);
% Objekte zeichnen
drawObjects(Medium, Audio, Video, Foto, Multimedia);
% Assoziatonen
clink(realization)(Audio, Medium);
clink(realization)(Video, Medium);
clink(realization)(Foto, Medium);
endfig;
end