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

java.lang.Object
  |
  +--org.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
 boolean equals(java.lang.Object component)
          Components are equal if they have the same UniqueID.
 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.
 ComponentRequestQueue getRequestQueue()
          This method's implementation is only valid in the component meta-objects.
 int hashCode()
          hashCode override
 boolean isFcInternalItf()
          see Interface.isFcInternalItf()
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static 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
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
NoSuchInterfaceException

getBody

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

equals

public boolean equals(java.lang.Object component)
Components are equal if they have the same UniqueID. However, it is only possible to compare the current component with a reference on another component, in other words with a ProActiveComponentRepresentative object. see ProActiveComponent.equals(Object)

Specified by:
equals in interface ProActiveComponent
Overrides:
equals in class java.lang.Object
Returns:
true if both components are equals

hashCode

public int hashCode()
hashCode override

Overrides:
hashCode in class java.lang.Object
Returns:
a hashCode for this 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


Copyright © April 2004 INRIA All Rights Reserved.