public class ComponentGraph extends Graph
| Constructor and Description |
|---|
ComponentGraph()
Constructs an empty component graph.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(Component<?> aComponent)
Adds a component by adding required interfaces, components, and provided
interfaces.
|
void |
addEdgeFilter(CompositeEdgeFilter aEdgeFilter) |
void |
addProvidedInterface(Component aComponent,
ProvidedInterface aInterface)
Adds an externally provided interface of a container.
|
void |
addRequiredInterface(Component aComponent,
RequiredInterface aInterface)
Adds an externally required interface of a container.
|
List<Pair<ProvidedInterface,ProvidedInterface>> |
findExternalProvidedInterfaceMapping()
Finds a list of mappings of external provided interface to internal
provided interface.
|
void |
link()
Links provided and required interfaces together in the component model
based on the graph model.
|
void |
validate()
Validates the component graph.
|
accept, addEdge, addEdges, addNode, addNodes, applyFilter, extend, findIncoming, findNode, findOutgoing, getEdges, getNodes, removeEdge, removeNodepublic void addRequiredInterface(Component aComponent, RequiredInterface aInterface)
aComponent - Component requiring the interface.aInterface - Required interface.public void addProvidedInterface(Component aComponent, ProvidedInterface aInterface)
aComponent - Component providing the interface.aInterface - Provided interface.public void validate()
public void link()
public List<Pair<ProvidedInterface,ProvidedInterface>> findExternalProvidedInterfaceMapping()
public void addComponent(Component<?> aComponent)
aComponent - Component to add.public void addEdgeFilter(CompositeEdgeFilter aEdgeFilter)
Copyright © 2025. All rights reserved.