public class BusRouterData extends LayoutData
BusRouter
.Constructor and Description |
---|
BusRouterData() |
Modifier and Type | Method and Description |
---|---|
void |
apply(LayoutGraphAdapter adapter,
ILayoutAlgorithm layout,
CopiedLayoutGraph layoutGraph)
Applies this layout data to the specified
layoutGraphAdapter . |
AbortHandler |
getAbortHandler()
Gets the AbortHandler used during the layout.
|
DpKeyItemCollection<IEdge> |
getAffectedEdges()
Gets the collection of edges affected by this router.
|
ItemMapping<IEdge,BusDescriptor> |
getEdgeDescriptors()
Gets the mapping of edges to their
BusDescriptor . |
ItemMapping<INode,PortCandidateSet> |
getNodePortCandidateSets()
Gets a mapping from nodes to their
PortCandidateSet . |
ItemMapping<IEdge,Collection<PortCandidate>> |
getSourcePortCandidates()
Gets a mapping from edges to a collection of their source port
candidates . |
ItemMapping<IEdge,PortConstraint> |
getSourcePortConstraints()
Gets a mapping from edges to their source
PortConstraint . |
ItemMapping<IEdge,Collection<PortCandidate>> |
getTargetPortCandidates()
Gets a mapping from edges to a collection of their target port
candidates . |
ItemMapping<IEdge,PortConstraint> |
getTargetPortConstraints()
Gets a mapping from edges to their target
PortConstraint . |
void |
setAbortHandler(AbortHandler value)
Sets the AbortHandler used during the layout.
|
void |
setAffectedEdges(DpKeyItemCollection<IEdge> value)
Sets the collection of edges affected by this router.
|
void |
setEdgeDescriptors(ItemMapping<IEdge,BusDescriptor> value)
Sets the mapping of edges to their
BusDescriptor . |
void |
setNodePortCandidateSets(ItemMapping<INode,PortCandidateSet> value)
Sets a mapping from nodes to their
PortCandidateSet . |
void |
setSourcePortCandidates(ItemMapping<IEdge,Collection<PortCandidate>> value)
Sets a mapping from edges to a collection of their source port
candidates . |
void |
setSourcePortConstraints(ItemMapping<IEdge,PortConstraint> value)
Sets a mapping from edges to their source
PortConstraint . |
void |
setTargetPortCandidates(ItemMapping<IEdge,Collection<PortCandidate>> value)
Sets a mapping from edges to a collection of their target port
candidates . |
void |
setTargetPortConstraints(ItemMapping<IEdge,PortConstraint> value)
Sets a mapping from edges to their target
PortConstraint . |
public void apply(LayoutGraphAdapter adapter, ILayoutAlgorithm layout, CopiedLayoutGraph layoutGraph)
LayoutData
layoutGraphAdapter
.apply
in class LayoutData
adapter
- The adapter to add the layout data to.layout
- The layout that shall use this layout data.layoutGraph
- The layout graph used for the layout calculation.public final AbortHandler getAbortHandler()
AbortHandler.ABORT_HANDLER_DPKEY
,
setAbortHandler(AbortHandler)
public final DpKeyItemCollection<IEdge> getAffectedEdges()
This collection is only used by the router if the Scope
is set to
Scope.ROUTE_AFFECTED_EDGES
. The DpKey
only has to be specified if the AffectedEdgesDpKey
is not
BusRouter.DEFAULT_AFFECTED_EDGES_DPKEY
BusRouter.getAffectedEdgesDpKey()
,
setAffectedEdges(DpKeyItemCollection)
public final ItemMapping<IEdge,BusDescriptor> getEdgeDescriptors()
BusDescriptor
.BusRouter.EDGE_DESCRIPTOR_DPKEY
,
setEdgeDescriptors(ItemMapping)
public final ItemMapping<INode,PortCandidateSet> getNodePortCandidateSets()
PortCandidateSet
.PortCandidateSet.NODE_PORT_CANDIDATE_SET_DPKEY
,
setNodePortCandidateSets(ItemMapping)
public final ItemMapping<IEdge,Collection<PortCandidate>> getSourcePortCandidates()
candidates
.PortCandidate.SOURCE_PORT_CANDIDATE_COLLECTION_DPKEY
,
setSourcePortCandidates(ItemMapping)
public final ItemMapping<IEdge,PortConstraint> getSourcePortConstraints()
PortConstraint
.PortConstraintKeys.SOURCE_PORT_CONSTRAINT_DPKEY
,
setSourcePortConstraints(ItemMapping)
public final ItemMapping<IEdge,Collection<PortCandidate>> getTargetPortCandidates()
candidates
.PortCandidate.TARGET_PORT_CANDIDATE_COLLECTION_DPKEY
,
setTargetPortCandidates(ItemMapping)
public final ItemMapping<IEdge,PortConstraint> getTargetPortConstraints()
PortConstraint
.PortConstraintKeys.TARGET_PORT_CONSTRAINT_DPKEY
,
setTargetPortConstraints(ItemMapping)
public final void setAbortHandler(AbortHandler value)
value
- The AbortHandler to set.AbortHandler.ABORT_HANDLER_DPKEY
,
getAbortHandler()
public final void setAffectedEdges(DpKeyItemCollection<IEdge> value)
This collection is only used by the router if the Scope
is set to
Scope.ROUTE_AFFECTED_EDGES
. The DpKey
only has to be specified if the AffectedEdgesDpKey
is not
BusRouter.DEFAULT_AFFECTED_EDGES_DPKEY
value
- The AffectedEdges to set.BusRouter.getAffectedEdgesDpKey()
,
getAffectedEdges()
public final void setEdgeDescriptors(ItemMapping<IEdge,BusDescriptor> value)
BusDescriptor
.value
- The EdgeDescriptors to set.BusRouter.EDGE_DESCRIPTOR_DPKEY
,
getEdgeDescriptors()
public final void setNodePortCandidateSets(ItemMapping<INode,PortCandidateSet> value)
PortCandidateSet
.value
- The NodePortCandidateSets to set.PortCandidateSet.NODE_PORT_CANDIDATE_SET_DPKEY
,
getNodePortCandidateSets()
public final void setSourcePortCandidates(ItemMapping<IEdge,Collection<PortCandidate>> value)
candidates
.value
- The SourcePortCandidates to set.PortCandidate.SOURCE_PORT_CANDIDATE_COLLECTION_DPKEY
,
getSourcePortCandidates()
public final void setSourcePortConstraints(ItemMapping<IEdge,PortConstraint> value)
PortConstraint
.value
- The SourcePortConstraints to set.PortConstraintKeys.SOURCE_PORT_CONSTRAINT_DPKEY
,
getSourcePortConstraints()
public final void setTargetPortCandidates(ItemMapping<IEdge,Collection<PortCandidate>> value)
candidates
.value
- The TargetPortCandidates to set.PortCandidate.TARGET_PORT_CANDIDATE_COLLECTION_DPKEY
,
getTargetPortCandidates()
public final void setTargetPortConstraints(ItemMapping<IEdge,PortConstraint> value)
PortConstraint
.value
- The TargetPortConstraints to set.PortConstraintKeys.TARGET_PORT_CONSTRAINT_DPKEY
,
getTargetPortConstraints()