public class LSVersion
extends java.lang.Object
| Constructor and Description |
|---|
LSVersion() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getBuildDate()
Returns LocalSolver's build date.
|
static java.lang.String |
getCopyright()
Returns LocalSolver's copyright as a string.
|
static java.lang.String |
getInfo()
Returns version and copyright info as a string.
|
static java.lang.String |
getLicenseContent()
Returns the license content previously set with
setLicenseContent(java.lang.String) or the LS_LICENSE_CONTENT environment
variable. |
static java.lang.String |
getLicensePath()
Returns the license path of LocalSolver.
|
static int |
getMajorVersionNumber()
Returns LocalSolver's major version number.
|
static int |
getMinorVersionNumber()
Returns LocalSolver's minor version number.
|
static java.lang.String |
getPlatform()
Returns the platform of the LocalSolver's binary as a string.
|
static java.lang.String |
getVersion()
Returns LocalSolver's version as a string.
|
static int |
getVersionCode()
Returns LocalSolver's version code as an integer in the range [0, 29999].
|
static void |
setLicenseContent(java.lang.String licenseContent)
Changes the license content.
|
static void |
setLicensePath(java.lang.String licensePath)
Changes the license path used by LocalSolver.
|
public static final int getMajorVersionNumber()
public static final int getMinorVersionNumber()
public static final int getBuildDate()
public static final java.lang.String getPlatform()
public static final java.lang.String getVersion()
public static final int getVersionCode()
public static final java.lang.String getCopyright()
public static final java.lang.String getInfo()
public static final java.lang.String getLicensePath()
setLicensePath(java.lang.String).For windows users: If you used the installer to setup LocalSolver, the LS_LICENSE_PATH environment variable is already defined and points to the license file present in the installation folder.
Note: The license content can also be set directly with
setLicenseContent(java.lang.String) or with the LS_LICENSE_CONTENT environment
variable and this definition will have priority over the
license file.
setLicensePath(java.lang.String),
getLicenseContent(),
setLicenseContent(java.lang.String)public static final void setLicensePath(java.lang.String licensePath)
licensePath - new path for the licensegetLicensePath(),
setLicenseContent(java.lang.String),
getLicenseContent()public static final java.lang.String getLicenseContent()
setLicenseContent(java.lang.String) or the LS_LICENSE_CONTENT environment
variable.setLicenseContent(java.lang.String),
getLicensePath(),
setLicensePath(java.lang.String)public static final void setLicenseContent(java.lang.String licenseContent)
licenseContent - content of the license to use.getLicenseContent(),
setLicensePath(java.lang.String),
getLicensePath()