Interface LinkFactory<L extends Link>
-
- All Superinterfaces:
GraphEntityFactory<L>
,ManagedIdEntityFactory<L>
- All Known Subinterfaces:
MacroscopicLinkFactory
- All Known Implementing Classes:
LinkFactoryImpl
,MacroscopicLinkFactoryImpl
public interface LinkFactory<L extends Link> extends GraphEntityFactory<L>
Factory interface for creating links.- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Link
registerNew(Node nodeA, Node nodeB, double lengthKm, boolean registerOnNodes)
Create new link on links container, allow to be registered on nodes if indicated)-
Methods inherited from interface org.goplanit.utils.id.ManagedIdEntityFactory
createUniqueDeepCopyOf, createUniqueShallowCopyOf, getIdGroupingToken, setIdGroupingToken
-
-
-
-
Method Detail
-
registerNew
Link registerNew(Node nodeA, Node nodeB, double lengthKm, boolean registerOnNodes)
Create new link on links container, allow to be registered on nodes if indicated)- Parameters:
nodeA
- the first node in this linknodeB
- the second node in this linklengthKm
- length of the link in kmregisterOnNodes
- choice to register new edge on the vertices or not- Returns:
- the created link
-
-