1 31 package org.objectweb.proactive.core.component.type; 32 33 import java.io.Serializable ; 34 35 36 import org.apache.log4j.Logger; 37 38 import org.objectweb.fractal.api.Type; 39 import org.objectweb.fractal.api.type.InterfaceType; 40 41 42 48 public class ProActiveInterfaceType implements InterfaceType, Serializable { 49 protected static Logger logger = Logger.getLogger(ProActiveInterfaceType.class.getName()); 50 51 52 55 private String name; 56 57 60 private String signature; 61 62 private boolean isClient; 63 private boolean isOptional; 64 private boolean isCollection; 65 68 public ProActiveInterfaceType() { 69 super(); 70 } 71 72 80 public ProActiveInterfaceType(final InterfaceType itfType) { 81 this.name = new String (itfType.getFcItfName()); 82 this.signature = new String (itfType.getFcItfSignature()); 83 this.isClient = itfType.isFcClientItf(); 84 this.isOptional = itfType.isFcOptionalItf(); 85 this.isCollection = itfType.isFcCollectionItf(); 86 } 87 90 public ProActiveInterfaceType(String name, String signature, boolean isClient, boolean isOptional, 91 boolean isCollection) { 92 93 this.name = name; 94 this.signature = signature; 95 this.isClient = isClient; 96 this.isOptional = isOptional; 97 this.isCollection = isCollection; 98 } 99 100 104 107 public String getFcItfName() { 108 return name; 109 } 110 111 114 public String getFcItfSignature() { 115 return signature; 116 } 117 118 121 public boolean isFcClientItf() { 122 return isClient; 123 } 124 125 128 public boolean isFcOptionalItf() { 129 return isOptional; 130 } 131 132 135 public boolean isFcCollectionItf() { 136 return isCollection; 137 } 138 139 143 public boolean isFcSubTypeOf(final Type type) { 144 throw new RuntimeException ("Not yet implemented."); 145 } 146 } | Popular Tags |