Class MatrixLegacyWrapper
java.lang.Object
com.dna.jopt.member.unit.legacywrapper.matrixwrapper.MatrixLegacyWrapper
- All Implemented Interfaces:
IMatrixLegacyWrapper
The Class MatrixLegacyWrapper.
- Since:
- Sep 13, 2017
- Version:
- Sep 23, 2020
- Author:
- jrich
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDistanceMatrix
(double[][] distanceMatrix) Adds the distance matrix.void
addTimeMatrix
(double[][] timeMatrix) Adds the time matrix.void
createNodeEdgeConnector
(com.dna.jopt.framework.firstentitycreation.IEntityArranger ena) Creates the node edge connector.void
Creates the node edge connector.Gets the node connector.boolean
Checks for distance matrix.
-
Constructor Details
-
MatrixLegacyWrapper
public MatrixLegacyWrapper()Instantiates a new matrix legacy wrapper.
-
-
Method Details
-
getNodeConnector
Gets the node connector.- Specified by:
getNodeConnector
in interfaceIMatrixLegacyWrapper
- Returns:
- the node connector
-
addDistanceMatrix
public void addDistanceMatrix(double[][] distanceMatrix) Adds the distance matrix.- Specified by:
addDistanceMatrix
in interfaceIMatrixLegacyWrapper
- Parameters:
distanceMatrix
- the distance matrix
-
hasDistanceMatrix
public boolean hasDistanceMatrix()Checks for distance matrix.- Specified by:
hasDistanceMatrix
in interfaceIMatrixLegacyWrapper
- Returns:
- true, if successful
-
addTimeMatrix
public void addTimeMatrix(double[][] timeMatrix) Adds the time matrix.- Specified by:
addTimeMatrix
in interfaceIMatrixLegacyWrapper
- Parameters:
timeMatrix
- the time matrix
-
createNodeEdgeConnector
public void createNodeEdgeConnector(com.dna.jopt.framework.firstentitycreation.IEntityArranger ena) Creates the node edge connector.- Specified by:
createNodeEdgeConnector
in interfaceIMatrixLegacyWrapper
- Parameters:
ena
- the ena
-
createNodeEdgeConnector
Creates the node edge connector.- Specified by:
createNodeEdgeConnector
in interfaceIMatrixLegacyWrapper
- Parameters:
en
- the en
-