package cas.ypsiliform.mediator.negotiation;

import java.util.ArrayList;

import cas.ypsiliform.mediator.async.Thenable;
import cas.ypsiliform.messages.AgentResponse;

public class AgentProxy {
	private ArrayList<AgentDeadListener> listeners = new ArrayList<AgentDeadListener>();
	
	public void addAgentDeadListener(AgentDeadListener listener) {
		listeners.add(listener);
	}
	
	public void removeAgentDeadListener(AgentDeadListener listener) {
		listeners.remove(listener);
	}
	
	
	public Thenable<AgentResponse> sendSolutionProposal(SolutionProposal solution) {
		// TODO implementation missing
		throw new UnsupportedOperationException();
	}
}

@@ -274,18 +274,17 @@
 ner%3E();%0A
-%09
 %0A
+
 %09public 
@@ -369,18 +369,17 @@
 er);%0A%09%7D%0A
-%09
 %0A
+
 %09public 
@@ -470,19 +470,16 @@
 er);%0A%09%7D%0A
-%09%0A%09
 %0A%09public
@@ -633,11 +633,160 @@
 on();%0A%09%7D
+%0A%0A%09public Thenable%3CVoid%3E endNegotiation(SolutionProposal solution) %7B%0A%09%09// TODO implementation missing%0A%09%09throw new UnsupportedOperationException();%0A%09%7D
 %0A%7D%0A

Add agent proxy operation to end the negotiation