// Path: agent-messaging/src/main/java/fr/irit/smac/libs/tooling/messaging/ExceptionMessage.java
// public class ExceptionMessage {
// 
//     /** The Constant UNKNOWN_GROUP_UNSUBSCRIBE. */
//     public static final String UNKNOWN_GROUP_UNSUBSCRIBE        = "Trying to unsubscribe an agent from an unknown group : {0}";
// 
//     /** The Constant UNKNOWN_GROUP_SUBSCRIBE. */
//     public static final String UNKNOWN_GROUP_SUBSCRIBE          = "Trying to subscribe an agent from an unknown group : {0}";
// 
//     /** The Constant UNKNOWN_RECEIVER_SEND. */
//     public static final String UNKNOWN_RECEIVER_SEND            = "Trying to send a message to an unknown receiver : {0}";
// 
//     /** The Constant UNKNOWN_GROUP_SEND. */
//     public static final String UNKNOWN_GROUP_SEND               = "Trying to send a message to an unknown group : {0}";
// 
//     /** The Constant GET_MESSAGES_DISPOSED_MSG_BOX. */
//     public static final String GET_MESSAGES_DISPOSED_MSG_BOX    = "Trying to receive messages from a disposed message box.";
// 
//     /** The Constant AGENT_ALREADY_ASSOCIATED_MSG_BOX. */
//     public static final String AGENT_ALREADY_ASSOCIATED_MSG_BOX = "The agent {0} is already associated with a msgBox.";
// 
//     /**
//      * Instantiates a new exception message.
//      */
//     private ExceptionMessage() {
//         
//     }
//     
//     /**
//      * Format message.
//      *
//      * @param messageString
//      *            the message string
//      * @param arg0
//      *            the arg0
//      * @return the string
//      */
//     public static String formatMessage(String messageString, Object arg0) {
// 
//         MessageFormat mf = new MessageFormat(messageString);
//         Object[] args = new Object[1];
//         args[0] = arg0;
//         return mf.format(args);
//     }
// 
// }


import fr.irit.smac.libs.tooling.messaging.ExceptionMessage;
import java.util.List;
/*
 * #%L
 * agent-messaging
 * %%
 * Copyright (C) 2014 - 2015 IRIT - SMAC Team
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Lesser Public License for more details.
 * 
 * You should have received a copy of the GNU General Lesser Public
 * License along with this program.  If not, see
 * <http://www.gnu.org/licenses/lgpl-3.0.html>.
 * #L%
 */
package fr.irit.smac.libs.tooling.messaging.impl.messagecontainer;



/**
 * An implementation of a dummy msgContainer used when an AgentMsgBox is
 * disposed.
 *
 * @author lemouzy
 */
public class DummyMsgContainer implements IMsgContainer<Object> {

    /*
     * (non-Javadoc)
     * 
     * @see
     * fr.irit.smac.libs.tooling.messaging.impl.messagecontainer.IMsgSink#putMsg
     * (java.lang.Object)
     */
    @Override
    public boolean putMsg(Object msg) {
        return false;
    }

    /*
     * (non-Javadoc)
     * 
     * @see
     * fr.irit.smac.libs.tooling.messaging.impl.messagecontainer.IMsgSource#
     * getMsgs()
     */
    @Override
    public List<Object> getMsgs() {
        throw new IllegalStateException(
// Path: agent-messaging/src/main/java/fr/irit/smac/libs/tooling/messaging/ExceptionMessage.java
// public class ExceptionMessage {
// 
//     /** The Constant UNKNOWN_GROUP_UNSUBSCRIBE. */
//     public static final String UNKNOWN_GROUP_UNSUBSCRIBE        = "Trying to unsubscribe an agent from an unknown group : {0}";
// 
//     /** The Constant UNKNOWN_GROUP_SUBSCRIBE. */
//     public static final String UNKNOWN_GROUP_SUBSCRIBE          = "Trying to subscribe an agent from an unknown group : {0}";
// 
//     /** The Constant UNKNOWN_RECEIVER_SEND. */
//     public static final String UNKNOWN_RECEIVER_SEND            = "Trying to send a message to an unknown receiver : {0}";
// 
//     /** The Constant UNKNOWN_GROUP_SEND. */
//     public static final String UNKNOWN_GROUP_SEND               = "Trying to send a message to an unknown group : {0}";
// 
//     /** The Constant GET_MESSAGES_DISPOSED_MSG_BOX. */
//     public static final String GET_MESSAGES_DISPOSED_MSG_BOX    = "Trying to receive messages from a disposed message box.";
// 
//     /** The Constant AGENT_ALREADY_ASSOCIATED_MSG_BOX. */
//     public static final String AGENT_ALREADY_ASSOCIATED_MSG_BOX = "The agent {0} is already associated with a msgBox.";
// 
//     /**
//      * Instantiates a new exception message.
//      */
//     private ExceptionMessage() {
//         
//     }
//     
//     /**
//      * Format message.
//      *
//      * @param messageString
//      *            the message string
//      * @param arg0
//      *            the arg0
//      * @return the string
//      */
//     public static String formatMessage(String messageString, Object arg0) {
// 
//         MessageFormat mf = new MessageFormat(messageString);
//         Object[] args = new Object[1];
//         args[0] = arg0;
//         return mf.format(args);
//     }
// 
// }


// Path: agent-messaging/src/main/java/fr/irit/smac/libs/tooling/messaging/impl/messagecontainer/DummyMsgContainer.java
import fr.irit.smac.libs.tooling.messaging.ExceptionMessage;
import java.util.List;

/*
 * #%L
 * agent-messaging
 * %%
 * Copyright (C) 2014 - 2015 IRIT - SMAC Team
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Lesser Public License for more details.
 * 
 * You should have received a copy of the GNU General Lesser Public
 * License along with this program.  If not, see
 * <http://www.gnu.org/licenses/lgpl-3.0.html>.
 * #L%
 */
package fr.irit.smac.libs.tooling.messaging.impl.messagecontainer;



/**
 * An implementation of a dummy msgContainer used when an AgentMsgBox is
 * disposed.
 *
 * @author lemouzy
 */
public class DummyMsgContainer implements IMsgContainer<Object> {

    /*
     * (non-Javadoc)
     * 
     * @see
     * fr.irit.smac.libs.tooling.messaging.impl.messagecontainer.IMsgSink#putMsg
     * (java.lang.Object)
     */
    @Override
    public boolean putMsg(Object msg) {
        return false;
    }

    /*
     * (non-Javadoc)
     * 
     * @see
     * fr.irit.smac.libs.tooling.messaging.impl.messagecontainer.IMsgSource#
     * getMsgs()
     */
    @Override
    public List<Object> getMsgs() {
        throw new IllegalStateException(
            ExceptionMessage.GET_MESSAGES_DISPOSED_MSG_BOX);