Commit 0b7ec707 authored by Anthony ROZEN's avatar Anthony ROZEN
Browse files

implementation M2 fini

parent af9bb41c
package M2Bis;
package M2Bis;
import java.util.ArrayList;
public class Component {
private String nomComponent;
private Configuration configuration;
private ArrayList<String> listServiceFournis;
private ArrayList<String> listServiceRequis;
private ArrayList<Service> listServicesFournis;
private ArrayList<Service> listServicesRequis;
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<String> getListServiceFournis() {
return listServiceFournis;
public ArrayList<Service> getListServiceFournis() {
return listServicesFournis;
}
/**
* @param listServiceFournis the listServiceFournis to set
*/
public void setListServiceFournis(ArrayList<String> listServiceFournis) {
this.listServiceFournis = listServiceFournis;
public void setListServiceFournis(ArrayList<Service> listServiceFournis) {
this.listServicesFournis = listServiceFournis;
}
/**
* @return the listServiceRequis
*/
public ArrayList<String> getListServiceRequis() {
return listServiceRequis;
public ArrayList<Service> getListServiceRequis() {
return listServicesRequis;
}
/**
* @param listServiceRequis the listServiceRequis to set
*/
public void setListServiceRequis(ArrayList<String> listServiceRequis) {
this.listServiceRequis = listServiceRequis;
public void setListServiceRequis(ArrayList<Service> listServiceRequis) {
this.listServicesRequis = listServiceRequis;
}
/**
* @return the listPortCompRequis
......
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() {
}
}
@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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment