org.objectweb.proactive.core.component.identity
Class ProActiveComponentImpl

java.lang.Object
  extended byorg.objectweb.proactive.core.component.identity.ProActiveComponentImpl
All Implemented Interfaces:
Component, Interface, ProActiveComponent, java.io.Serializable

public class ProActiveComponentImpl
extends java.lang.Object
implements ProActiveComponent, Interface, java.io.Serializable

The base class for managing components. It builds the "membrane" in the Fractal terminology : the controllers of the components.

Author:
Matthieu Morel
See Also:
Serialized Form

Field Summary
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
ProActiveComponentImpl()
           
ProActiveComponentImpl(ComponentParameters componentParameters, Body myBody)
          Constructor for ProActiveComponent.
 
Method Summary
 Body getBody()
           
 ComponentParameters getComponentParameters()
           
 java.lang.Object getFcInterface(java.lang.String interfaceName)
          see Component.getFcInterface(String)
 java.lang.Object[] getFcInterfaces()
          see Component.getFcInterfaces()
 java.lang.String getFcItfName()
          see Interface.getFcItfName()
 Component getFcItfOwner()
          see Interface.getFcItfOwner()
 Type getFcItfType()
          see Interface.getFcItfType()
 Type getFcType()
          see Component.getFcType()
 UniqueID getID()
          see ProActiveComponent.getID()
 java.lang.Object getReferenceOnBaseObject()
          Returns the base object.
 Component getRepresentativeOnThis()
          see ProActiveComponent.getRepresentativeOnThis()
 ComponentRequestQueue getRequestQueue()
          This method's implementation is only valid in the component meta-objects.
 boolean isFcInternalItf()
          see Interface.isFcInternalItf()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.proactive.core.component.identity.ProActiveComponent
equals
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger
Constructor Detail

ProActiveComponentImpl

public ProActiveComponentImpl()

ProActiveComponentImpl

public ProActiveComponentImpl(ComponentParameters componentParameters,
                              Body myBody)
Constructor for ProActiveComponent.

Parameters:
componentParameters -
myBody - a reference on the body (required notably to get a reference on the request queue, used to control the life cycle of the component)
Method Detail

getFcInterface

public java.lang.Object getFcInterface(java.lang.String interfaceName)
                                throws NoSuchInterfaceException
see Component.getFcInterface(String)

Specified by:
getFcInterface in interface Component
Throws:
NoSuchInterfaceException

getFcInterfaces

public java.lang.Object[] getFcInterfaces()
see Component.getFcInterfaces()

Specified by:
getFcInterfaces in interface Component

getFcType

public Type getFcType()
see Component.getFcType()

Specified by:
getFcType in interface Component

getFcItfName

public java.lang.String getFcItfName()
see Interface.getFcItfName()

Specified by:
getFcItfName in interface Interface

getFcItfOwner

public Component getFcItfOwner()
see Interface.getFcItfOwner()

Specified by:
getFcItfOwner in interface Interface

getFcItfType

public Type getFcItfType()
see Interface.getFcItfType()

Specified by:
getFcItfType in interface Interface

isFcInternalItf

public boolean isFcInternalItf()
see Interface.isFcInternalItf()

Specified by:
isFcInternalItf in interface Interface

getReferenceOnBaseObject

public java.lang.Object getReferenceOnBaseObject()
Returns the base object. If the component is a composite, a basic do-nothing instance of class Composite is returned.

Specified by:
getReferenceOnBaseObject in interface ProActiveComponent
Returns:
the base object underneath

getRequestQueue

public ComponentRequestQueue getRequestQueue()
Description copied from interface: ProActiveComponent
This method's implementation is only valid in the component meta-objects.

Specified by:
getRequestQueue in interface ProActiveComponent
Returns:
the request queue of the current active object.

getComponentParameters

public ComponentParameters getComponentParameters()
                                           throws NoSuchInterfaceException
Returns:
a ComponentParameters instance, corresponding to the configuration of the current component
Throws:
NoSuchInterfaceException

getBody

public Body getBody()
Returns:
the body of the current active object

getID

public UniqueID getID()
see ProActiveComponent.getID()

Specified by:
getID in interface ProActiveComponent
Returns:
a unique identifier of the component (of the active object) accross virtual machines

getRepresentativeOnThis

public Component getRepresentativeOnThis()
see ProActiveComponent.getRepresentativeOnThis()

Specified by:
getRepresentativeOnThis in interface ProActiveComponent
Returns:
a component representative on the current component - If called from the representative, it returns this representative - if called from the meta-object, it returns a representative on itself


Copyright ? October 2004 INRIA All Rights Reserved.