Commit 74f4960f authored by Anthony ROZEN's avatar Anthony ROZEN
Browse files

Ajout du M1 premiere partie

parent 0b7ec707
package M1;
public class Client {
private String receiveRequest;
public Client(String receiveRequest) {
this.receiveRequest = receiveRequest;
}
}
package M1;
import M2Bis.Connector;
public class RPC extends Connector {
private String called;
private String caller;
public RPC(String nomConnector, String roleFournis, String roleRequis, String called, String caller) {
super(nomConnector, roleFournis, roleRequis);
this.called = called;
this.caller = caller;
}
}
package M1;
import M2Bis.AttachementReqFour;
public class ReceiveCalled extends AttachementReqFour {
private String called;
private String receiveRequest;
public ReceiveCalled(String portCompRequis, String roleFournis, String called, String receiveRequest) {
super(portCompRequis, roleFournis);
this.called = called;
this.receiveRequest= receiveRequest;
}
}
package M1;
import M2Bis.AttachementFourReq;
public class SendCaller extends AttachementFourReq {
private String sendRequest;
private String caller;
public SendCaller(String portCompFournis, String roleRequis, String sendRequest, String caller) {
super(portCompFournis, roleRequis);
this.caller = caller;
this.sendRequest = sendRequest;
}
}
package M1;
import M2Bis.Component;
import M2Bis.Service;
public class Server extends Component {
private String sendRequest;
public Server(String nomComponent, Service serviceFournis, String sendRequest) {
super(nomComponent, serviceFournis);
this.sendRequest = sendRequest;
}
}
package M1;
import java.util.ArrayList;
import M2Bis.Component;
import M2Bis.Configuration;
public class SimpleCs extends Configuration {
private RPC rpc;
private ReceiveCalled receiveCalled;
private SendCaller sendCaller;
private ArrayList<Client> listClient;
private Server server;
public SimpleCs(String nomConfiguration, Component component, RPC rpc, ReceiveCalled receiveCalled, SendCaller sendCaller, Client client, Server server) {
super(nomConfiguration, component);
this.rpc = rpc;
this.receiveCalled = receiveCalled;
this.sendCaller = sendCaller;
this.listClient = new ArrayList<Client>();
this.listClient.add(client);
this.server = server;
}
}
......@@ -125,7 +125,6 @@ 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
......
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