-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasic_MVP.uml
68 lines (53 loc) · 954 Bytes
/
basic_MVP.uml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/perl
use warnings;
use strict;
package Model;
package View;
use Moose;
has presenter => (is => 'ro', isa => 'Pesenter');
no Moose;
package Presenter;
use Moose;
has model => (is => 'ro', isa => 'Model');
no Moose;
package View::Test;
use Moose;
use Tk;
has entry => (is => 'ro', isa => 'Tk::Entry');
sub BUILD {
my $self = shift;
my $mw = MainWindow->new();
my $f = $mw->Frame();
$self->entry($f->Entry())->pack();
$f->pack;
MainLoop;
}
__END__
@startuml basic_MVP.png
!ifdef COMMENT
class Model
class View {
Presenter presenter
}
class Presenter {
Model model
}
!endif
"View::Test" --> "Presenter::Test" : presenter
"Presenter::Test" --> "Model::Test" : model
set namespaceSeparator ::
class View::Test {
Presenter::Test presenter
Tk::Entry string_e
Str presentString()
void storeString()
}
class Presenter::Test {
View::Test view
Str getModelString()
}
class Model::Test {
Str test_string
Str getString()
}
@enduml