- java.lang.Object
-
- org.jgrapht.nio.tsplib.TSPLIBImporter.Specification
-
- Enclosing class:
- TSPLIBImporter<V,E>
public static class TSPLIBImporter.Specification extends java.lang.Object
Container for the entry values read from the specification part of a file in TSPLIB95 format.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Integer
capacity
private java.util.List<java.lang.String>
comment
private java.lang.Integer
dimension
private java.lang.String
displayDataType
private java.lang.String
edgeDataFormat
private java.lang.String
edgeWeightFormat
private java.lang.String
edgeWeightType
private java.lang.String
name
private java.lang.String
nodeCoordType
private java.lang.String
type
-
Constructor Summary
Constructors Constructor Description Specification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
getCapacity()
Returns the value of the CAPACITY keyword in the imported file.java.util.List<java.lang.String>
getComments()
Returns theList
of values for the COMMENT keyword in the imported file.java.lang.Integer
getDimension()
Returns the value of the DIMENSION keyword in the imported file.java.lang.String
getDisplayDataType()
Returns the value of the DISPLAY_DATA_TYPE keyword in the imported file.java.lang.String
getEdgeDataFormat()
Returns the value of the EDGE_DATA_FORMAT keyword in the imported file.java.lang.String
getEdgeWeightFormat()
Returns the value of the EDGE_WEIGHT_FORMAT keyword in the imported file.java.lang.String
getEdgeWeightType()
Returns the value of the EDGE_WEIGHT_TYPE keyword in the imported file.java.lang.String
getName()
Returns the value of the NAME keyword in the imported file.java.lang.String
getNodeCoordType()
Returns the value of the NODE_COORD_TYPE keyword in the imported file.java.lang.String
getType()
Returns the value of the TYPE keyword in the imported file.
-
-
-
Field Detail
-
name
private java.lang.String name
-
type
private java.lang.String type
-
comment
private final java.util.List<java.lang.String> comment
-
dimension
private java.lang.Integer dimension
-
capacity
private java.lang.Integer capacity
-
edgeWeightType
private java.lang.String edgeWeightType
-
edgeWeightFormat
private java.lang.String edgeWeightFormat
-
edgeDataFormat
private java.lang.String edgeDataFormat
-
nodeCoordType
private java.lang.String nodeCoordType
-
displayDataType
private java.lang.String displayDataType
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the value of the NAME keyword in the imported file.- Returns:
- the value of the NAME keyword
-
getType
public java.lang.String getType()
Returns the value of the TYPE keyword in the imported file.- Returns:
- the value of the TYPE keyword
-
getComments
public java.util.List<java.lang.String> getComments()
Returns theList
of values for the COMMENT keyword in the imported file.- Returns:
- the value of the COMMENT keyword
-
getDimension
public java.lang.Integer getDimension()
Returns the value of the DIMENSION keyword in the imported file.- Returns:
- the value of the DIMENSION keyword
-
getCapacity
public java.lang.Integer getCapacity()
Returns the value of the CAPACITY keyword in the imported file.- Returns:
- the value of the CAPACITY keyword
-
getEdgeWeightType
public java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String getDisplayDataType()
Returns the value of the DISPLAY_DATA_TYPE keyword in the imported file.- Returns:
- the value of the DISPLAY_DATA_TYPE keyword
-
-