KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > SOFAnode > Util > ConnectorProtocolGen


1 /* $Id: ConnectorProtocolGen.java,v 1.1.1.1 2003/02/11 16:19:41 bures Exp $ */
2 package SOFA.SOFAnode.Util.ConnectorProtocolGen;
3
4
5 /** An interface for generator of connector protocols.
6   * @author Petr Hnetynka
7   */

8 public interface ConnectorProtocolGen {
9   
10   /** Generates protocol for connector with specified roles.
11     * @param provideRoles list of connector's provide roles
12     * @param requireRoles list of connector's require roles
13     * @return generated protocol
14     * @throws CannotGenerateException thrown if protocol cannot be generated
15     */

16   public String JavaDoc generate(RoleDescription[] provideRoles, RoleDescription[] requireRoles) throws CannotGenerateException;
17   
18 }
19
20
Popular Tags