org.objectweb.proactive.core.component.identity
Interface ProActiveComponent

All Superinterfaces:
Component, java.io.Serializable
All Known Subinterfaces:
ProActiveComponentRepresentative
All Known Implementing Classes:
ProActiveComponentImpl, ProActiveComponentRepresentativeImpl

public interface ProActiveComponent
extends Component, java.io.Serializable

This class extends Component, in order to provide access to some ProActive functionalities (the parameters of the component, the request queue, the reified object)

Author:
Matthieu Morel

Method Summary
 boolean equals(java.lang.Object object)
          comparison between components
 UniqueID getID()
          getter for a unique identifier
 java.lang.Object getReferenceOnBaseObject()
          accessor to the base object : either a direct reference or a stub
 Component getRepresentativeOnThis()
          provides a reference to the current component
 ComponentRequestQueue getRequestQueue()
          This method's implementation is only valid in the component meta-objects.
 
Methods inherited from interface org.objectweb.fractal.api.Component
getFcInterface, getFcInterfaces, getFcType
 

Method Detail

getReferenceOnBaseObject

public java.lang.Object getReferenceOnBaseObject()
accessor to the base object : either a direct reference or a stub

Returns:
a reference on the base object. If called from the meta-objects, it returns a direct reference on the base object. If called from the representative, it returns a stub on the base object (standard ProActive stub, same type than the base object)

getRepresentativeOnThis

public Component getRepresentativeOnThis()
provides a reference to the current component

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

getRequestQueue

public ComponentRequestQueue getRequestQueue()
This method's implementation is only valid in the component meta-objects.

Returns:
a reference to the queue of request of this active object

equals

public boolean equals(java.lang.Object object)
comparison between components

Parameters:
object - another component to compare to
Returns:
true if both components are equals

getID

public UniqueID getID()
getter for a unique identifier

Returns:
a unique identifier of the component (of the active object) accross virtual machines


Copyright ? October 2004 INRIA All Rights Reserved.