00001 /* 00002 * ################################################################ 00003 * 00004 * ProActive: The Java(TM) library for Parallel, Distributed, 00005 * Concurrent computing with Security and Mobility 00006 * 00007 * Copyright (C) 1997-2007 INRIA/University of Nice-Sophia Antipolis 00008 * Contact: proactive@objectweb.org 00009 * 00010 * This library is free software; you can redistribute it and/or 00011 * modify it under the terms of the GNU Lesser General Public 00012 * License as published by the Free Software Foundation; either 00013 * version 2.1 of the License, or any later version. 00014 * 00015 * This library is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 * Lesser General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU Lesser General Public 00021 * License along with this library; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00023 * USA 00024 * 00025 * Initial developer(s): The ProActive Team 00026 * http://www.inria.fr/oasis/ProActive/contacts.html 00027 * Contributor(s): 00028 * 00029 * ################################################################ 00030 */ 00031 package org.objectweb.proactive.core.component; 00032 00033 import org.objectweb.fractal.api.Component; 00034 import org.objectweb.fractal.api.Type; 00035 00036 00045 public abstract class ProActiveInterfaceImpl implements java.io.Serializable, 00046 ProActiveInterface { 00047 private Component owner; 00048 private String name; 00049 private Type type; 00050 private boolean isInternal; 00051 00052 public ProActiveInterfaceImpl() { 00053 } 00054 00055 /* 00056 * 00057 * @see org.objectweb.fractal.api.Interface#getFcItfOwner() 00058 */ 00059 public Component getFcItfOwner() { 00060 return owner; 00061 } 00062 00063 /* 00064 * 00065 * @see org.objectweb.fractal.api.Interface#getFcItfName() 00066 */ 00067 public String getFcItfName() { 00068 return name; 00069 } 00070 00071 /* 00072 * 00073 * @see org.objectweb.fractal.api.Interface#getFcItfType() 00074 */ 00075 public Type getFcItfType() { 00076 return type; 00077 } 00078 00079 /* 00080 * 00081 * @see org.objectweb.fractal.api.Interface#isFcInternalItf() 00082 */ 00083 public boolean isFcInternalItf() { 00084 return isInternal; 00085 } 00086 00087 /* 00088 * 00089 * @see org.objectweb.proactive.core.component.ProActiveInterface#setFcIsInternal(boolean) 00090 */ 00091 public void setFcIsInternal(boolean isInternal) { 00092 this.isInternal = isInternal; 00093 } 00094 00095 /* 00096 * 00097 * @see org.objectweb.proactive.core.component.ProActiveInterface#setFcItfName(java.lang.String) 00098 */ 00099 public void setFcItfName(String name) { 00100 this.name = name; 00101 } 00102 00103 /* 00104 * 00105 * @see org.objectweb.proactive.core.component.ProActiveInterface#setFcItfOwner(org.objectweb.fractal.api.Component) 00106 */ 00107 public void setFcItfOwner(Component owner) { 00108 this.owner = owner; 00109 } 00110 00111 /* 00112 * 00113 * @see org.objectweb.proactive.core.component.ProActiveInterface#setFcType(org.objectweb.fractal.api.Type) 00114 */ 00115 public void setFcType(Type type) { 00116 this.type = type; 00117 } 00118 00119 /* 00120 * 00121 * @see org.objectweb.proactive.core.component.ProActiveInterface#getFcItfImpl() 00122 */ 00123 public abstract Object getFcItfImpl(); 00124 00125 /* 00126 * 00127 * @see org.objectweb.proactive.core.component.ProActiveInterface#setFcItfImpl(java.lang.Object) 00128 */ 00129 public abstract void setFcItfImpl(final Object impl); 00130 00131 00132 public String toString() { 00133 String string = "name : " + getFcItfName() + "\n" + // "componentIdentity : " + getFcItfOwner() + "\n" + "type : " + 00134 getFcItfType() + "\n" + "isInternal : " + isFcInternalItf() + "\n"; 00135 return string; 00136 } 00137 }