Interface ILinkingResourceRouter<NodeType,LinkType>
-
- Type Parameters:
NodeType
- The type of the nodesLinkType
- The tyoe of the links
- All Known Implementing Classes:
ResourceEnvironmentObservingLegacyRouter
public interface ILinkingResourceRouter<NodeType,LinkType>
A linking resource router determines the connection between two nodes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Iterable<LinkType>>
findRoute(NodeType transmissionSource, NodeType transmissionTarget)
Determines a series of links between transmissionSource and transmissionTarget.
-
-
-
Method Detail
-
findRoute
Optional<Iterable<LinkType>> findRoute(NodeType transmissionSource, NodeType transmissionTarget)
Determines a series of links between transmissionSource and transmissionTarget.- Parameters:
transmissionSource
- the node where the transmission is originatingtransmissionTarget
- the target node of the transmission- Returns:
- an
Optional
of anIterable
of links if there is a route between the nodes. The iterable may be empty, e. g. if source equals target. If there is no route between source and target an empty optional is returned.
-
-