Class AbstractNodeEdgeConnector
java.lang.Object
com.dna.jopt.member.unit.nodeedge.AbstractNodeEdgeConnector
- All Implemented Interfaces:
INodeEdgeConnector,Serializable
- Direct Known Subclasses:
NodeEdgeConnector
public abstract class AbstractNodeEdgeConnector
extends Object
implements INodeEdgeConnector, Serializable
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedAbstractNodeEdgeConnector(IBackupElementConnector backUpConnector) protectedAbstractNodeEdgeConnector(IBackupElementConnector backUpConnector, IExternalConnectionProvider externalConnectionProvider, IZoneManager zoneManager) protectedAbstractNodeEdgeConnector(IExternalConnectionProvider externalConnectionProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidattachSeparatedTestConnectionProvider(ISeparatedTestConnectionProvider consumableProvider) voidGets the systems default or user provided backup element connector.getNodeConnection(String from, String too) Gets a specific node connection between twoIOptimizationElementids.Gets all connections as a list instead of a table.protected com.google.common.collect.Table<String,String, INodeConnectorItem> booleanhasConnectionToOrFrom(String elementId) voidputNodeConnection(INodeConnectorItem connection) Puts a single node connection.voidputNodeConnection(String from, String too, INodeConnectorItem connection) Deprecated.voidputNodeConnectionIfNotExisting(INodeConnectorItem connection) Put node connection if not existing.voidputNodeConnectionIfNotExisting(String from, String too, INodeConnectorItem connection) Deprecated.please useputNodeConnectionIfNotExisting(INodeConnectorItem)insteadvoidputNodeConnections(List<INodeConnectorItem> connections) Puts a list of connections to be stored in the table.voidputNodeConnectionsIfNotExisting(List<INodeConnectorItem> connections) voidsetBackupElementConnector(IBackupElementConnector backUpConnector) Sets theIBackupElementConnectorwhich is used if theINodeEdgeConnectorcannot find a requested connection.voidsetExternalConnectionProvider(IExternalConnectionProvider externalConnectionProvider) voidsetNodeConnections(com.google.common.collect.Table<String, String, INodeConnectorItem> table) Sets the node connections table.voidsetZoneManager(IZoneManager zoneManager) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.dna.jopt.member.unit.nodeedge.INodeEdgeConnector
cleanUp, getNodeConnection, getNodeConnection, refactorNodeConnectorConnection, removeConnection, removeConnection, removeConnectionFromElements
-
Constructor Details
-
AbstractNodeEdgeConnector
protected AbstractNodeEdgeConnector() -
AbstractNodeEdgeConnector
-
AbstractNodeEdgeConnector
-
AbstractNodeEdgeConnector
protected AbstractNodeEdgeConnector(IBackupElementConnector backUpConnector, IExternalConnectionProvider externalConnectionProvider, IZoneManager zoneManager)
-
-
Method Details
-
getNodeConnectorTable
-
setNodeConnections
public void setNodeConnections(com.google.common.collect.Table<String, String, INodeConnectorItem> table) Description copied from interface:INodeEdgeConnectorSets the node connections table.- Specified by:
setNodeConnectionsin interfaceINodeEdgeConnector- Parameters:
table- the table
-
setBackupElementConnector
Description copied from interface:INodeEdgeConnectorSets theIBackupElementConnectorwhich is used if theINodeEdgeConnectorcannot find a requested connection. TheIBackupElementConnectordefines how the item is created.By default the
DefaultFlatEarthAverageSpeedBackupElementConnectoris used.- Specified by:
setBackupElementConnectorin interfaceINodeEdgeConnector- Parameters:
backUpConnector- the iBackupElementConnector which is used as a fall back
-
getBackupElementConnector
Description copied from interface:INodeEdgeConnectorGets the systems default or user provided backup element connector.- Specified by:
getBackupElementConnectorin interfaceINodeEdgeConnector- Returns:
- the backup element connector
-
setZoneManager
- Specified by:
setZoneManagerin interfaceINodeEdgeConnector
-
getZoneManager
- Specified by:
getZoneManagerin interfaceINodeEdgeConnector
-
setExternalConnectionProvider
- Specified by:
setExternalConnectionProviderin interfaceINodeEdgeConnector
-
getExternalConnectionProvider
- Specified by:
getExternalConnectionProviderin interfaceINodeEdgeConnector
-
attachSeparatedTestConnectionProvider
public void attachSeparatedTestConnectionProvider(ISeparatedTestConnectionProvider consumableProvider) - Specified by:
attachSeparatedTestConnectionProviderin interfaceINodeEdgeConnector
-
getSeparatedTestConnectionProvider
- Specified by:
getSeparatedTestConnectionProviderin interfaceINodeEdgeConnector
-
dropSeparatedTestConnectionProvider
public void dropSeparatedTestConnectionProvider()- Specified by:
dropSeparatedTestConnectionProviderin interfaceINodeEdgeConnector
-
getNodeConnection
Description copied from interface:INodeEdgeConnectorGets a specific node connection between twoIOptimizationElementids. In case the connections was not provided by the user theIBackupElementConnectoris used to create the connection.- Specified by:
getNodeConnectionin interfaceINodeEdgeConnector- Parameters:
from- the fromtoo- the too- Returns:
- the node connection
-
hasConnectionToOrFrom
- Specified by:
hasConnectionToOrFromin interfaceINodeEdgeConnector
-
getNodeConnections
Description copied from interface:INodeEdgeConnectorGets all connections as a list instead of a table.- Specified by:
getNodeConnectionsin interfaceINodeEdgeConnector- Returns:
- the node connections
-
putNodeConnections
Description copied from interface:INodeEdgeConnectorPuts a list of connections to be stored in the table. Already present connections (identified via the unique ids of the connection memberIOptimizationElement) are replaced.- Specified by:
putNodeConnectionsin interfaceINodeEdgeConnector- Parameters:
connections- the connections
-
putNodeConnection
Description copied from interface:INodeEdgeConnectorPuts a single node connection. An already present connection (identified via the unique ids of the connection memberIOptimizationElement) is replaced.- Specified by:
putNodeConnectionin interfaceINodeEdgeConnector- Parameters:
connection- the connection
-
putNodeConnectionsIfNotExisting
- Specified by:
putNodeConnectionsIfNotExistingin interfaceINodeEdgeConnector
-
putNodeConnectionIfNotExisting
Description copied from interface:INodeEdgeConnectorPut node connection if not existing. An already present connection (identified via the unique ids of the connection memberIOptimizationElement) is kept.- Specified by:
putNodeConnectionIfNotExistingin interfaceINodeEdgeConnector- Parameters:
connection- the connection
-
putNodeConnection
Deprecated.please useputNodeConnection(INodeConnectorItem)insteadDeprecated method- Specified by:
putNodeConnectionin interfaceINodeEdgeConnector- Parameters:
from- string start locationtoo- string end locationconnection- the iNodeConnectoritem to write start and end locations to
-
putNodeConnectionIfNotExisting
@Deprecated public void putNodeConnectionIfNotExisting(String from, String too, INodeConnectorItem connection) Deprecated.please useputNodeConnectionIfNotExisting(INodeConnectorItem)insteadDeprecated method- Specified by:
putNodeConnectionIfNotExistingin interfaceINodeEdgeConnector- Parameters:
from- string start locationtoo- string end locationconnection- the iNodeConnectoritem to write start and end locations to
-
putNodeConnection(INodeConnectorItem)instead