|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.mff.ksi.jinfer.iss.heuristics.construction.glpk.GlpkUtils
public final class GlpkUtils
Utility class for GLPK binding.
Field Summary | |
---|---|
static String |
INPUT
|
static String |
OUTPUT
|
Method Summary | |
---|---|
static String |
getName(AttributeMappingId mapping)
Returns a "name" for the provided attribute mapping. |
static String |
getName(AttributeMappingId mapping,
char separator)
Returns a "name" for the provided attribute mapping, using the provided separator character. |
static String[] |
getParameters(int timeLimit)
|
static String |
getPath()
Returns the full path to the GLPK Solver binary in a String. |
static String |
getVersion()
Returns the first line that GLPK returns when run with "-v" option, hopefully containing the version of GLPK. |
static boolean |
isBinaryValid()
Verifies whether the GLPK binary is valid. |
static boolean |
isBinaryValid(String binaryPath)
Verifies whether the provided path to GLPK binary is valid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String INPUT
public static final String OUTPUT
Method Detail |
---|
public static String getPath()
public static boolean isBinaryValid()
FileUtils.isBinaryValid(String, String, String, boolean)
for details.
True
if the binary found at path provided by
getPath()
is a valid GLPK Solver binary, false
otherwise.public static boolean isBinaryValid(String binaryPath)
FileUtils.isBinaryValid(String, String, String, boolean)
for details.
binaryPath
- Path to the binary to check.
True
if the binary found at path provided is a valid
GLPK Solver binary, false
otherwise.public static String getVersion()
null
if something goes wrong.public static String getName(AttributeMappingId mapping)
mapping
- Mapping to get a name for.
element name-attribute name
public static String getName(AttributeMappingId mapping, char separator)
mapping
- Mapping to get a name for.separator
- Separator to use.
element name{separator}attribute name
public static String[] getParameters(int timeLimit)
|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |