1 2 package SOFA.SOFAnode.Util; 3 4 9 public class ProtocolChecker { 10 11 static public String int2frame(String ifaceProt, boolean provide, String [] ifaceOperations, String 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 frame2arch(String frameProt, String [] providesOperations, String archProt, String [] 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 |