View Javadoc

1   package cz.cuni.amis.pogamut.base.communication.connection;
2   
3   import java.io.Writer;
4   
5   import com.google.inject.ImplementedBy;
6   
7   import cz.cuni.amis.pogamut.base.communication.connection.exception.ConnectionException;
8   import cz.cuni.amis.pogamut.base.communication.exception.CommunicationException;
9   import cz.cuni.amis.pogamut.base.utils.guice.AgentScoped;
10  
11  /**
12   * Interface that provides a writer that can be used to send commands to the world.
13   * @author Jimmy
14   */
15  public interface IWorldWriterProvider {
16  	
17  	/**
18  	 * To be used on ICommandSerializer.start() method to obtain a writer into the world.
19  	 * <p><p>
20  	 * Use writer.close() to stop the writer.
21  	 * 
22  	 * @return
23  	 * @throws ConnectionException
24  	 */
25  	public WorldWriter getWriter() throws CommunicationException;
26  	
27  }