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-specific features (reference on this component, reference on the base object, IDs)

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
 
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

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 2001-2005 INRIA All Rights Reserved.