XPRMLocation
- java.lang.Object
-
- com.dashoptimization.XPRMLocation
-
public class XPRMLocation extends java.lang.ObjectA location in a model source.
-
-
Field Summary
Modifier and Type Field and Description intlineIndexLine index.XPRMModelmodelModel for which this location is defined.
-
Method Summary
Modifier and Type Method and Description java.lang.StringgetFileName()Get the file name associated to the source location.intgetLine()Get the line number associated to the source location.java.lang.StringtoString()Get a string representation of the location.
-
-
-
Field Detail
-
lineIndex
public final int lineIndex
Line index. All statements of a model and numbered from 0 toXPRMModel.lastLineIndex.- See Also:
-
XPRMModel.getLocation(int)
-
model
public final XPRMModel model
Model for which this location is defined.
-
-
Method Detail
-
getLine
public int getLine()
Get the line number associated to the source location.- Returns:
- Line number in the source file.
-
getFileName
public java.lang.String getFileName()
Get the file name associated to the source location.- Returns:
- Source file name.
-
toString
public java.lang.String toString()
Get a string representation of the location. This is the concatenation "filename:line".- Overrides:
-
toStringin classjava.lang.Object - Returns:
- String representation of the location
-
-
