1 package org.objectweb.jonathan.apis.protocols; 2 3 import org.objectweb.jonathan.apis.kernel.Context; 4 5 10 public class ProtocolInfo { 11 12 Protocol current; 13 ProtocolInfo[] lower; 14 Context hints = null; 16 21 public ProtocolInfo(Protocol current) { 22 this.current = current; 23 lower = new ProtocolInfo[0]; 24 } 25 26 32 public ProtocolInfo(Protocol current, ProtocolInfo[] lower) { 33 this.current = current; 34 this.lower = lower; 35 } 36 37 43 public void setHints(Context hints) { 44 this.hints = hints; 45 } 46 47 52 public ProtocolInfo[] getLower() { 53 return lower; 54 } 55 56 61 public Protocol getProtocol() { 62 return current; 63 } 64 65 public Context getHints() { 66 return hints; 67 } 68 69 public String toString() { 70 return "ProtocolInfo [ " + current.toString() + ", [ " +lower + " ]]"; 71 } 72 } 73 | Popular Tags |