XPRMLocation
- java.lang.Object
-
- com.dashoptimization.XPRMLocation
-
public class XPRMLocation extends java.lang.Object
A location in a model source.
-
-
Field Summary
Modifier and Type Field and Description int
lineIndex
Line index.XPRMModel
model
Model for which this location is defined.
-
Method Summary
Modifier and Type Method and Description java.lang.String
getFileName()
Get the file name associated to the source location.int
getLine()
Get the line number associated to the source location.java.lang.String
toString()
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:
-
toString
in classjava.lang.Object
- Returns:
- String representation of the location
-
-
© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.