Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

abeans::models::acs::baci::BACILibrary Class Reference

Collaboration diagram for abeans::models::acs::baci::BACILibrary:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BACILibrary ()
void contractBroken (abeans.core.Node source, Policy policy)
void contractChanged (PolicyManager.Contract newContract)
Family createDefaultFamily (ApplicationContext ctx)
void deregisterApplication (ApplicationContext ctx)
abeans.core.ComponentDescriptor getComponentDescriptor ()
String getName ()
void initialize (ComponentManager manager, Object state, abeans.core.ComponentDescriptor cdesc) throws ComponentInitializationException, IllegalComponentStateException
void registerApplication (ApplicationContext ctx)
ConnectableRealization getDescriptor (Connectable target)
LinkableRealization getDescriptor (Linkable target)
ModelingElementDescriptor getDescriptor (RemoteInfo target)
Class[] getModelingElementDescriptorTypes ()
BeanInfo newBeanInfoInstance (ConnectableRealization cd)
BeanInfo newBeanInfoInstance (LinkableRealization ld)
Abean newModelInstance (RemoteInfo target) throws InstantiationException
abeans.datatypes.TypelessProperty newProperty (RemoteInfo info, Family family) throws InstantiationException

Private Member Functions

AbeansDirectory getDirectory ()

Private Attributes

abeans.core.ComponentDescriptor cdesc = null
AbeansDirectory directory

Static Private Attributes

final Class[] modelingElementDescriptorTypes

Detailed Description

BACI Library implementation.

Author:
Matej Sekoranja (matej.sekoranja@cosylab.com)
Version:
@VERSION@


Constructor & Destructor Documentation

abeans::models::acs::baci::BACILibrary::BACILibrary  )  [inline]
 

Default constructor.


Member Function Documentation

void abeans::models::acs::baci::BACILibrary::contractBroken abeans.core.Node  source,
Policy  policy
[inline]
 

This method is called to inform the Contractor that the contract has been broken. The method is called only if the initiator of the contract breaking is not this contract holder. An optional policy argument may indicate the reason why the contract has been broken (the policy object represents the mandatory policy requested that could not be met by the provider).

Parameters:
source the Node that broke the contract
policy the mandatory policy request that cannot be met by the provider; can be null

void abeans::models::acs::baci::BACILibrary::contractChanged PolicyManager.Contract  newContract  )  [inline]
 

Called by the PolicyManager to inform the Contractor that the contract has been changed. This can happen if some other Node has requested a new set of policies to be installed or if the QoSProvider is unable to meet the policies because of its internal state. The change in policy can only occur to that policies which the provider is not forced to comply with.

Parameters:
newContract a new contract that has been modified because of the new policy request

Family abeans::models::acs::baci::BACILibrary::createDefaultFamily ApplicationContext  ctx  )  [inline]
 

Returns default family for the gived application context.

Parameters:
ctx application context for with default family should be returned
Returns:
abeans.models.Family

void abeans::models::acs::baci::BACILibrary::deregisterApplication ApplicationContext  ctx  )  [inline]
 

Parameters:
ctx abeans.framework.ApplicationContext

abeans.core.ComponentDescriptor abeans::models::acs::baci::BACILibrary::getComponentDescriptor  )  [inline]
 

Returns an instance of the ComponentDescriptor that parametrizes this component. The component should create an immutable descriptor instance only once and always return the same instance.

Returns:
a description of this component

ModelingElementDescriptor abeans::models::acs::baci::BACILibrary::getDescriptor RemoteInfo  target  )  [inline]
 

See also:
abeans.models.meta.Reflective#getDescriptor(RemoteInfo)

LinkableRealization abeans::models::acs::baci::BACILibrary::getDescriptor Linkable  target  )  [inline]
 

See also:
abeans.models.meta.Reflective#getDescriptor(abeans.models.Linkable)

ConnectableRealization abeans::models::acs::baci::BACILibrary::getDescriptor Connectable  target  )  [inline]
 

See also:
abeans.models.meta.Reflective#getDescriptor(abeans.models.Connectable)

AbeansDirectory abeans::models::acs::baci::BACILibrary::getDirectory  )  [inline, private]
 

Helper method returning (and caching) abeans directory.

Returns:
abeans directory

Class [] abeans::models::acs::baci::BACILibrary::getModelingElementDescriptorTypes  )  [inline]
 

See also:
abeans.models.meta.Reflective#getModelingElementDescriptorTypes()

String abeans::models::acs::baci::BACILibrary::getName  )  [inline]
 

Returns component name.

Returns:
component name.

void abeans::models::acs::baci::BACILibrary::initialize ComponentManager  manager,
Object  state,
abeans.core.ComponentDescriptor  cdesc
throws ComponentInitializationException, IllegalComponentStateException [inline]
 

Initializes the component. This includes any processing neccessary by the service when it is passed the parent (manager parameter) and the state. Functionally this means that the component will try to harmonize its state with that passed as the parameter and will throw an exception if the state interpretation is unsuccessfull. The component may use the Root to make any queries that it needs on the abeans system.

Parameters:
manager the manager that will be the parent of this component and the initiator of the install procedure. The manager will add the component to the collection after initialize completes.
state a state that should be installed by this component. If unable to do so, the component should raise the exception. If the component is stateless, the state must be null or the component should raise an exception.
cdesc a component descriptor identifying the component from which the state originates. If null, the state must also be null. This semantics indicates that the component should initialize to its default state (for instance because it is the first component receiving state transfer from no previous component).
Exceptions:
ComponentInitializationException thrown when the component determines, by querying the manager and Root that the conditions for the successfull installation are not fulfilled. The exception should contain an explanation of the failure.
IllegalComponentStateException thrown when the state parameter cannot be interpreted by the component or if it is not null even though the component is stateless
NullPointerException DOCUMENT ME!

BeanInfo abeans::models::acs::baci::BACILibrary::newBeanInfoInstance LinkableRealization  ld  )  [inline]
 

See also:
abeans.models.meta.Reflective#newBeanInfoInstance(abeans.models.meta.LinkableRealization)

BeanInfo abeans::models::acs::baci::BACILibrary::newBeanInfoInstance ConnectableRealization  cd  )  [inline]
 

See also:
abeans.models.meta.Reflective#newBeanInfoInstance(abeans.models.meta.ConnectableRealization)

Abean abeans::models::acs::baci::BACILibrary::newModelInstance RemoteInfo  target  )  throws InstantiationException [inline]
 

Attempts to create new instance of object (Abean). This method queries the directory in order to obtain the neccessary information, then attempts to instantiate the object.

See also:
abeans.models.meta.Reflective#newModelInstance(RemoteInfo)

abeans.datatypes.TypelessProperty abeans::models::acs::baci::BACILibrary::newProperty RemoteInfo  info,
Family  family
throws InstantiationException [inline]
 

See also:
abeans.models.meta.Reflective#newProperty(abeans.pluggable.RemoteInfo, abeans.models.Family)

void abeans::models::acs::baci::BACILibrary::registerApplication ApplicationContext  ctx  )  [inline]
 

Insert the method's description here. Creation date: (7/6/01 3:57:54 PM)

Parameters:
ctx abeans.framework.ApplicationContext


Member Data Documentation

abeans.core.ComponentDescriptor abeans::models::acs::baci::BACILibrary::cdesc = null [private]
 

Component descriptor.

AbeansDirectory abeans::models::acs::baci::BACILibrary::directory [private]
 

Abeans directory.

final Class [] abeans::models::acs::baci::BACILibrary::modelingElementDescriptorTypes [static, private]
 

Initial value:

{ NamespaceDescriptor.class, ComponentDescriptor.class, DynamicValueDescriptor.class }
List of supported modeling types.


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:42:49 2009 for ACS Java API by doxygen 1.3.8