- java.lang.Object
-
- org.jgrapht.nio.tsplib.TSPLIBImporter.Specification
-
- Enclosing class:
- TSPLIBImporter<V,E>
public static class TSPLIBImporter.Specification extends Object
Container for the entry values read from the specification part of a file in TSPLIB95 format.- Author:
- Hannes Wellmann
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetCapacity()Returns the value of the CAPACITY keyword in the imported file.List<String>getComments()Returns theListof values for the COMMENT keyword in the imported file.IntegergetDimension()Returns the value of the DIMENSION keyword in the imported file.StringgetDisplayDataType()Returns the value of the DISPLAY_DATA_TYPE keyword in the imported file.StringgetEdgeDataFormat()Returns the value of the EDGE_DATA_FORMAT keyword in the imported file.StringgetEdgeWeightFormat()Returns the value of the EDGE_WEIGHT_FORMAT keyword in the imported file.StringgetEdgeWeightType()Returns the value of the EDGE_WEIGHT_TYPE keyword in the imported file.StringgetName()Returns the value of the NAME keyword in the imported file.StringgetNodeCoordType()Returns the value of the NODE_COORD_TYPE keyword in the imported file.StringgetType()Returns the value of the TYPE keyword in the imported file.
-
-
-
Method Detail
-
getName
public String getName()
Returns the value of the NAME keyword in the imported file.- Returns:
- the value of the NAME keyword
-
getType
public String getType()
Returns the value of the TYPE keyword in the imported file.- Returns:
- the value of the TYPE keyword
-
getComments
public List<String> getComments()
Returns theListof values for the COMMENT keyword in the imported file.- Returns:
- the value of the COMMENT keyword
-
getDimension
public Integer getDimension()
Returns the value of the DIMENSION keyword in the imported file.- Returns:
- the value of the DIMENSION keyword
-
getCapacity
public Integer getCapacity()
Returns the value of the CAPACITY keyword in the imported file.- Returns:
- the value of the CAPACITY keyword
-
getEdgeWeightType
public String getEdgeWeightType()
Returns the value of the EDGE_WEIGHT_TYPE keyword in the imported file.- Returns:
- the value of the EDGE_WEIGHT_TYPE keyword
-
getEdgeWeightFormat
public String getEdgeWeightFormat()
Returns the value of the EDGE_WEIGHT_FORMAT keyword in the imported file.- Returns:
- the value of the EDGE_WEIGHT_FORMAT keyword
-
getEdgeDataFormat
public String getEdgeDataFormat()
Returns the value of the EDGE_DATA_FORMAT keyword in the imported file.- Returns:
- the value of the EDGE_DATA_FORMAT keyword
-
getNodeCoordType
public String getNodeCoordType()
Returns the value of the NODE_COORD_TYPE keyword in the imported file.- Returns:
- the value of the NODE_COORD_TYPE keyword
-
getDisplayDataType
public String getDisplayDataType()
Returns the value of the DISPLAY_DATA_TYPE keyword in the imported file.- Returns:
- the value of the DISPLAY_DATA_TYPE keyword
-
-