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();
	}

	public Thenable<Void> endNegotiation(SolutionProposal solution) {
		// TODO implementation missing
		throw new UnsupportedOperationException();
	}
}

@@ -461,32 +461,373 @@
 ve(listener);%0A%09%7D
+%0A%09%0A%09public int getId() %7B%0A%09%09// TODO implementation missing%0A%09%09throw new UnsupportedOperationException();%0A%09%7D%0A%09%0A%09public int getParentId() %7B%0A%09%09// TODO implementation missing%0A%09%09throw new UnsupportedOperationException();%0A%09%7D%0A%09%0A%09public Iterable%3CInteger%3E getChildIds() %7B%0A%09%09// TODO implementation missing%0A%09%09throw new UnsupportedOperationException();%0A%09%7D
 %0A%0A%09public Thenab

Add agent methods to get supply chain structure