EGF Engine
Release 0.1.0

org.eclipse.egf.model.data.helper
Interface IFactoryComponentLoadingHelper


public interface IFactoryComponentLoadingHelper

Provides services to load EGF model elements.


Method Summary
 FactoryComponent getFactoryComponent(IFactoryComponentDescriptor factoryComponentDescriptor_p)
          Get a factory component for given descriptor.
 FactoryComponent getFactoryComponent(String factoryComponentId_p)
          Get a factory component for given id.
 Context loadContext(String contextId_p, String factoryComponentId_p)
          Load a context from its description.
 List<ContractElement> loadContract(String contractId_p, String factoryComponentId_p)
          Load a contract for given parameters.
 ContractElementReference loadContractElementReference(String contractReferenceId_p, String factoryComponentId_p)
          Load contract element reference for given id.
 FactoryComponentInvocation loadFactoryComponentInvocation(String factoryComponentInvocationId_p, String factoryComponentId_p)
          Load a factory component invocation from its description.
 List<MappingModel> loadMappings(String factoryComponentId_p)
          Load mappings for given factory component.
 void loadPatternLibraries(String factoryComponentId_p, PatternViewpoint patternViewpoint_p)
          Load pattern libraries for given factory component id and pattern viewpoint.
 ProductionPlan loadProductionPlan(String productionPlanId_p, String factoryComponentId_p)
          Load a production plan from its description.
 TaskFactoryHolder loadTaskFactory(String taskFactoryId_p, String factoryComponentId_p)
          Load a task factory from its description.
 

Method Detail

getFactoryComponent

FactoryComponent getFactoryComponent(String factoryComponentId_p)
Get a factory component for given id.
It is either retrieved from the factory component registry or loaded.

Parameters:
factoryComponentId_p -
Returns:
a FactoryComponent instance if successfully got or null otherwise.

getFactoryComponent

FactoryComponent getFactoryComponent(IFactoryComponentDescriptor factoryComponentDescriptor_p)
Get a factory component for given descriptor.
It is either retrieved from the factory component registry or loaded.

Parameters:
factoryComponentDescriptor_p -
Returns:
a FactoryComponent instance if successfully got or null otherwise.

loadContract

List<ContractElement> loadContract(String contractId_p,
                                   String factoryComponentId_p)
Load a contract for given parameters.

Parameters:
contractId_p -
factoryComponentId_p - factory component where the contract is defined.
Returns:
a not null list of ContractElement.

loadContractElementReference

ContractElementReference loadContractElementReference(String contractReferenceId_p,
                                                      String factoryComponentId_p)
Load contract element reference for given id.

Parameters:
factoryComponentId_p - factory component where the contract element reference is defined.
contractReferenceId_p -

loadProductionPlan

ProductionPlan loadProductionPlan(String productionPlanId_p,
                                  String factoryComponentId_p)
Load a production plan from its description.

Parameters:
productionPlanId_p -
factoryComponentId_p - factory component where the production plan is defined.
Returns:
ProductionPlan instance if successfully loaded or null otherwise.

loadFactoryComponentInvocation

FactoryComponentInvocation loadFactoryComponentInvocation(String factoryComponentInvocationId_p,
                                                          String factoryComponentId_p)
Load a factory component invocation from its description.

Parameters:
factoryComponentInvocationId_p -
factoryComponentId_p - factory component where the factory component configuration is defined.
Returns:
FactoryComponentInvocation instance if successfully loaded or null otherwise.

loadTaskFactory

TaskFactoryHolder loadTaskFactory(String taskFactoryId_p,
                                  String factoryComponentId_p)
Load a task factory from its description.

Parameters:
taskFactoryId_p -
factoryComponentId_p - factory component where the task factory is defined.
Returns:
a TaskFactoryHolder instance if successfully loaded or null otherwise.

loadContext

Context loadContext(String contextId_p,
                    String factoryComponentId_p)
Load a context from its description.

Parameters:
contextId_p -
factoryComponentId_p - factory component where the context is defined.
Returns:
Context instance if successfully loaded or null otherwise.

loadPatternLibraries

void loadPatternLibraries(String factoryComponentId_p,
                          PatternViewpoint patternViewpoint_p)
Load pattern libraries for given factory component id and pattern viewpoint.

Parameters:
factoryComponentId_p - factory component where pattern libraries are defined.
patternViewpoint_p - the pattern libraries container.

loadMappings

List<MappingModel> loadMappings(String factoryComponentId_p)
Load mappings for given factory component.

Parameters:
factoryComponentId_p - factory component where the mappings are defined.
Returns:
a not null list.

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.