package communication.protocols;

import communication.messages.Message;

/**
 * Skeleton of a communication protocol
 * @author Balazs Pete
 *
 */
public interface Protocol {

	/**
	 * Get the type of the accepted {@link Message}
	 * @return The class name of the {@link Message}
	 */
	public String getAcceptedMessageType();
	
	/**
	 * Handle an input {@link Message} and return an answer
	 * @param message The {@link Message} to process
	 * @return The reply
	 */
	public Message processMessage(Message message);
	
}

@@ -169,16 +169,17 @@
 tocol %7B%0A
+%09
 %0A%09/**%0A%09 
@@ -513,10 +513,166 @@
 age);%0A%09%0A
+%09/**%0A%09 * Determine whether the protocol creates a response message%0A%09 * @return True if the protocol should reply to origin%0A%09 */%0A%09public boolean hasReply();%0A
 %7D%0A

Add hasReply method to Protocols