public class ComponentUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static ComponentInstance |
defaultParameterizationOfComponent(Component component)
This procedure returns a ComponentInstance of the given Component with default parameterization.
|
static java.util.Collection<ComponentInstance> |
getAllAlgorithmSelectionInstances(Component rootComponent,
java.util.Collection<Component> components)
Enumerates all possible component instances for a specific root component and a collection of components for resolving required interfaces.
|
static java.util.Collection<Component> |
getComponentsProvidingInterface(java.util.Collection<Component> components,
java.lang.String providedInterface)
Searches and returns all components within a collection of components that provide a specific interface.
|
static int |
getNumberOfUnparametrizedCompositions(java.util.Collection<Component> components,
java.lang.String requiredInterface) |
static ai.libs.jaicore.basic.kvstore.KVStore |
getStatsForComponents(java.util.Collection<Component> components) |
static boolean |
hasCycles(java.util.Collection<Component> components,
java.lang.String requiredInterface) |
static boolean |
isDefaultConfiguration(ComponentInstance instance) |
static ComponentInstance |
randomParameterizationOfComponent(Component component,
java.util.Random rand)
This procedure returns a valid random parameterization of a given component.
|
public static ComponentInstance defaultParameterizationOfComponent(Component component)
component - The component for which a random parameterization is to be returned.public static ComponentInstance randomParameterizationOfComponent(Component component, java.util.Random rand)
component - The component for which a random parameterization is to be returned.rand - The Random instance for making the random decisions.public static java.util.Collection<Component> getComponentsProvidingInterface(java.util.Collection<Component> components, java.lang.String providedInterface)
components - The collection of components to search in.providedInterface - The interface of interest.public static java.util.Collection<ComponentInstance> getAllAlgorithmSelectionInstances(Component rootComponent, java.util.Collection<Component> components)
rootComponent - The component to be considered the root.components - The collection fo components that is used for resolving required interfaces recursively.public static int getNumberOfUnparametrizedCompositions(java.util.Collection<Component> components, java.lang.String requiredInterface)
public static boolean hasCycles(java.util.Collection<Component> components, java.lang.String requiredInterface)
public static boolean isDefaultConfiguration(ComponentInstance instance)
public static ai.libs.jaicore.basic.kvstore.KVStore getStatsForComponents(java.util.Collection<Component> components)