KickJava   Java API By Example, From Geeks To Geeks.

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


1 /* $Id: ProtocolChecker.java,v 1.1.1.1 2003/02/11 16:19:41 bures Exp $ */
2 package SOFA.SOFAnode.Util;
3
4 /** Class for checking protocols
5  * !!! need rewrite
6  *
7  * @autor Petr Hnetynka
8  */

9 public class ProtocolChecker {
10
11   static public String JavaDoc int2frame(String JavaDoc ifaceProt, boolean provide, String JavaDoc[] ifaceOperations, String JavaDoc frameProt)throws SyntaxErrorException {
12     System.out.println("######## rewritten iface protocol #########");
13     System.out.println("Iface protocol: "+ifaceProt);
14     System.out.println("Frame protocol: "+frameProt);
15     for(int i=0;i<ifaceOperations.length;i++) {
16       System.out.print(ifaceOperations[i]+", ");
17     }
18     System.out.print("\n");
19     System.out.println("#################");
20     return null;
21   }
22
23   static public String JavaDoc frame2arch(String JavaDoc frameProt, String JavaDoc[] providesOperations, String JavaDoc archProt, String JavaDoc[] ifaceOperations) throws SyntaxErrorException {
24     System.out.println("######## rewritten iface protocol #########");
25     System.out.println(frameProt);
26     System.out.println(archProt);
27     for(int i=0;i<providesOperations.length;i++) {
28       System.out.print(providesOperations[i]+", ");
29     }
30     System.out.print("\n");
31     for(int i=0;i<ifaceOperations.length;i++) {
32       System.out.print(ifaceOperations[i]+", ");
33     }
34     System.out.print("\n");
35     System.out.println("#################");
36     return null;
37   }
38 }
39
Popular Tags