Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anthony ROZEN
ASAProject
Commits
0b7ec707
Commit
0b7ec707
authored
Nov 29, 2021
by
Anthony ROZEN
Browse files
implementation M2 fini
parent
af9bb41c
Changes
5
Hide whitespace changes
Inline
Side-by-side
ASAProject/bin/.gitignore
View file @
0b7ec707
/M1/
/M2/
/M2Bis/
ASAProject/src/M2Bis/Component.java
View file @
0b7ec707
package
M2Bis
;
package
M2Bis
;
import
java.util.ArrayList
;
public
class
Component
{
private
String
nomComponent
;
private
Configuration
configuration
;
private
ArrayList
<
S
tring
>
listServiceFournis
;
private
ArrayList
<
S
tring
>
listServiceRequis
;
private
ArrayList
<
S
ervice
>
listService
s
Fournis
;
private
ArrayList
<
S
ervice
>
listService
s
Requis
;
private
ArrayList
<
String
>
listPortCompRequis
;
private
ArrayList
<
String
>
listPortCompFournis
;
private
ArrayList
<
String
>
propertie
;
...
...
@@ -21,11 +21,12 @@ public class Component {
* @param propertie
* @param constraint
*/
public
Component
(
String
nomComponent
)
{
public
Component
(
String
nomComponent
,
Service
serviceFournis
)
{
this
.
nomComponent
=
nomComponent
;
this
.
configuration
=
null
;
this
.
listServiceFournis
=
new
ArrayList
<
String
>();
this
.
listServiceRequis
=
new
ArrayList
<
String
>();
this
.
listServicesFournis
=
new
ArrayList
<
Service
>();
this
.
listServicesFournis
.
add
(
serviceFournis
);
this
.
listServicesRequis
=
new
ArrayList
<
Service
>();
this
.
listPortCompRequis
=
new
ArrayList
<
String
>();
this
.
listPortCompFournis
=
new
ArrayList
<
String
>();
this
.
propertie
=
new
ArrayList
<
String
>();
...
...
@@ -59,26 +60,26 @@ public class Component {
/**
* @return the listServiceFournis
*/
public
ArrayList
<
S
tring
>
getListServiceFournis
()
{
return
listServiceFournis
;
public
ArrayList
<
S
ervice
>
getListServiceFournis
()
{
return
listService
s
Fournis
;
}
/**
* @param listServiceFournis the listServiceFournis to set
*/
public
void
setListServiceFournis
(
ArrayList
<
S
tring
>
listServiceFournis
)
{
this
.
listServiceFournis
=
listServiceFournis
;
public
void
setListServiceFournis
(
ArrayList
<
S
ervice
>
listServiceFournis
)
{
this
.
listService
s
Fournis
=
listServiceFournis
;
}
/**
* @return the listServiceRequis
*/
public
ArrayList
<
S
tring
>
getListServiceRequis
()
{
return
listServiceRequis
;
public
ArrayList
<
S
ervice
>
getListServiceRequis
()
{
return
listService
s
Requis
;
}
/**
* @param listServiceRequis the listServiceRequis to set
*/
public
void
setListServiceRequis
(
ArrayList
<
S
tring
>
listServiceRequis
)
{
this
.
listServiceRequis
=
listServiceRequis
;
public
void
setListServiceRequis
(
ArrayList
<
S
ervice
>
listServiceRequis
)
{
this
.
listService
s
Requis
=
listServiceRequis
;
}
/**
* @return the listPortCompRequis
...
...
ASAProject/src/M2Bis/Service.java
0 → 100644
View file @
0b7ec707
package
M2Bis
;
public
class
Service
{
private
String
nomService
;
public
Service
(
String
nomService
)
{
this
.
nomService
=
nomService
;
}
/**
* @return the nomService
*/
public
String
getNomService
()
{
return
nomService
;
}
/**
* @param nomService the nomService to set
*/
public
void
setNomService
(
String
nomService
)
{
this
.
nomService
=
nomService
;
}
public
void
execution
()
{
}
}
M1etage1.png
0 → 100644
View file @
0b7ec707
133 KB
M1etage1.txt
0 → 100644
View file @
0b7ec707
@startuml
class Configuration{
String nomConfiguration
}
class Component{
String nomComponent
}
class Connector{
String nomConnector
RoleFournis : glue(RoleRequis from)
}
class Role{
String nomRole
}
class RoleFournis extends Role {
}
class RoleRequis extends Role {
}
class Port{
String nomPort
}
class PortConf extends Port{
}
class PortComp extends Port{
}
class PortConfRequis extends PortConf {
}
class PortConfFournis extends PortConf {
}
class PortCompRequis extends PortComp {
}
class PortCompFournis extends PortComp {
}
class Services {
String nomServices
}
class ServicesRequis extends Services {
}
class ServicesFournis extends Services {
}
class Attachement{
}
class AttachementReqFour extends Attachement {
}
class AttachementFourReq extends Attachement{
}
class Binding{
}
class BindingRequis extends Binding{
}
class BindingFournis extends Binding{
}
class Propertie{
string description
}
class Constraint{
string description
}
Configuration "1" *-- "1..*" Component
Configuration "1" *-- "0..*" Connector
Configuration "1" *-- "0..*" Attachement
Configuration "1" *-- "0..*" PortConf
Configuration "1" *-- "0..*" Binding
Component "1" *-- "0..*" PortCompRequis
Component "1" *-- "0..*" ServicesRequis
Component "1" *-- "0..*" PortCompFournis
Component "1" *-- "0..*" ServicesFournis
Component "1" *-- "0..1" Configuration
Component "1" *-- "0..*" Constraint
Component "1" *-- "0..*" Propertie
Connector "1" *-- "1" RoleRequis
Connector "1" *-- "1" RoleFournis
AttachementReqFour "0..*" --> "1" PortCompRequis
AttachementReqFour "0..*" --> "1" RoleFournis
AttachementFourReq "0..*" --> "1" PortCompFournis
AttachementFourReq "0..*" --> "1" RoleRequis
BindingRequis "0..*" --> "1" PortConfRequis
BindingRequis "0..*" --> "1" PortCompRequis
BindingFournis "0..*" --> "1" PortConfFournis
BindingFournis "0..*" --> "1" PortCompFournis
class SimpleCS extends Configuration{
}
class Client extends Component{
}
class Server extends Component{
}
class RPC extends Connector{
}
class Called extends RoleFournis{
}
class Caller extends RoleRequis {
}
class ReceiveRequest extends PortCompRequis{
}
class SendRequest extends PortCompFournis {
}
class ReceiveCalled extends AttachementReqFour{
}
class SendCaller extends AttachementFourReq{
}
SimpleCS "1" *-- "1" Client
SimpleCS "1" *-- "1" Server
SimpleCS "1" *-- "1" RPC
SimpleCS "1" *-- "1" Client
SimpleCS "1" *-- "1" SendCaller
SimpleCS "1" *-- "1" ReceiveCalled
Server "1" *-- "1" SendRequest
Client "1" *-- "1" ReceiveRequest
RPC "1" *-- "1" Caller
RPC "1" *-- "1" Called
SendCaller "1" --> "1" SendRequest
SendCaller "1*" --> "1" Caller
ReceiveCalled "1*" --> "1" Called
ReceiveCalled "1*" --> "1" ReceiveRequest
@enduml
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment