|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.optimizationservices.oscommon.representationparser.OSgLReader
org.optimizationservices.oscommon.representationparser.OSrLReader
public class OSrLReader
The
Field Summary |
---|
Fields inherited from class org.optimizationservices.oscommon.representationparser.OSgLReader |
---|
m_document |
Constructor Summary | |
---|---|
OSrLReader()
Default constructor. |
|
OSrLReader(boolean validate)
constructor. |
Method Summary | |
---|---|
double |
getAvailableDiskSpace()
Get the available disk space (in bytes). |
double |
getAvailableMemory()
Get the available memory (in bytes). |
int |
getConstraintNumber()
Get constraint number. |
int |
getCurrentJobCount()
Get the current job count. |
java.lang.String |
getCurrentState()
Get the current state, , which can be: "busy", "busyButAccepting", "idle", "idleButNotAccepting" and "noResponse". |
double[] |
getDualVariableValues(int solIdx)
Get the [i]th optimization solution's dual variable values, where i equals the given solution index. |
java.lang.String |
getGeneralMessage()
Get the general message. |
GeneralStatus |
getGeneralStatus()
Get the general status. |
java.lang.String |
getGeneralStatusDescription()
Get the general status description. |
java.lang.String |
getGeneralStatusType()
Get the general status type, which can be: success, error, warning. |
java.lang.String |
getInstanceName()
Get instance name. |
java.lang.String |
getJobID()
Get the job id. |
JobStatistics[] |
getJobStatistics()
Get the statistics of all the jobs. |
int |
getObjectiveNumber()
Get objective number. |
double[] |
getObjectiveValues(int solIdx)
Get the [i]th optimization solution's objective values, where i equals the given solution index. |
double[] |
getOptimalDualVariableValues(int objIdx)
Get one solution of optimal dual variable values. |
java.lang.String[] |
getOptimalPrimalVariableStringValues(int objIdx)
Get one solution of optimal primal variable string values. |
double[] |
getOptimalPrimalVariableValues(int objIdx)
Get one solution of optimal primal variable values. |
OSAnalysis |
getOSAnalysis()
Get the optimization analysis in the standard OSAnalysis data structure. |
OSResult |
getOSResult()
get the standard OSResult, a local interface for storing Optimization Services result. |
OtherConstraintResult[] |
getOtherConstraintResults(int solIdx)
Get the [i]th optimization solution's other (non-standard/solver specific)constraint-related results, where i equals the given solution index. |
OtherObjectiveResult[] |
getOtherObjectiveResults(int solIdx)
Get the [i]th optimization solution's other (non-standard/solver specific)objective-related results, where i equals the given solution index. |
OtherOptimizationResult[] |
getOtherOptimizationResults(int solIdx)
Get the [i]th optimization solution's other (non-standard/solver specific)optimization-related results, where i equals the given solution index. |
java.lang.String |
getOtherResultDescriptionByName(java.lang.String name)
Get the String value from the other info hash map. |
java.lang.String[] |
getOtherResultDescriptions()
Get the descriptions of all other result information. |
java.lang.String[] |
getOtherResultNames()
Get the names of all other result information. |
int |
getOtherResultNumber()
Get the number of other result information. |
java.util.HashMap<java.lang.String,java.lang.String> |
getOtherResults()
Get the hash map of other result information. |
java.lang.String |
getOtherResultValueByName(java.lang.String name)
Get the String value from the other info hash map. |
java.lang.String[] |
getOtherResultValues()
Get the values of all other result information. |
OtherVariableResult[] |
getOtherVariableResults(int solIdx)
Get the [i]th optimization solution's other (non-standard/solver specific)variable-related results, where i equals the given solution index. |
ProcessStatistics |
getProcessStatistics()
Get the process statistics. |
java.util.GregorianCalendar |
getResultTime()
Get time of the result. |
java.lang.String |
getServiceName()
Get service name. |
java.lang.String |
getServiceURI()
Get service uri. |
double |
getServiceUtilization()
Get the service utilization ([0, 1]). |
OptimizationSolution |
getSolution(int solIdx)
Get the [i]th optimization solution, where i equals the given solution index. |
java.lang.String |
getSolutionMessage(int solIdx)
Get the [i]th optimization solution message, where i equals the given solution index. |
int |
getSolutionNumber()
get the number of solutions. |
int |
getSolutionObjectiveIndex(int solIdx)
Get the [i]th optimization solution's objective index, where i equals the given solution index. |
OptimizationSolutionStatus |
getSolutionStatus(int solIdx)
Get the [i]th optimization solution status, where i equals the given solution index. |
java.lang.String |
getSolutionStatusDescription(int solIdx)
Get the [i]th optimization solution status description, where i equals the given solution index. |
java.lang.String |
getSolutionStatusType(int solIdx)
Get the [i]th optimization solution status type, where i equals the given solution index. |
OptimizationSolutionSubstatus[] |
getSolutionSubStatuses(int solIdx)
Get the [i]th optimization solution subStatuses, where i equals the given solution index. |
VariableValues |
getSparseVariableValues(int solIdx)
Get the [i]th optimization solution's variable values in a sparse data structure, where i equals the given solution index. |
java.util.GregorianCalendar |
getTimeLastJobEnded()
Get the time last job ended. |
double |
getTimeLastJobTook()
Get the time last job took (in seconds). |
java.util.GregorianCalendar |
getTimeServiceStarted()
Get the time the service started. |
int |
getTotalJobsSoFar()
Get the total jobs received so far. |
int |
getVariableNumber()
Get variable number. |
java.lang.String[] |
getVariableStringValues(int solIdx)
Get the [i]th optimization solution's variable string values, where i equals the given solution index. |
double[] |
getVariableValues(int solIdx)
Get the [i]th optimization solution's variable values, where i equals the given solution index. |
static void |
main(java.lang.String[] argv)
main for test purposes. |
Methods inherited from class org.optimizationservices.oscommon.representationparser.OSgLReader |
---|
getDocument, getRootElement, isValidate, readFile, readString, setDocument, setRootElement, setValidate, writeToFile, writeToSring, writeToStandardOutput |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OSrLReader(boolean validate)
validate
- holds whether the reader should be validating against the schema or not.public OSrLReader()
Method Detail |
---|
public OSResult getOSResult() throws java.lang.Exception
java.lang.Exception
- if there are errors getting the OSResult.public GeneralStatus getGeneralStatus()
public java.lang.String getGeneralStatusType()
public java.lang.String getGeneralStatusDescription()
public java.lang.String getServiceURI()
public java.lang.String getServiceName()
public java.lang.String getInstanceName()
public java.lang.String getJobID()
public java.util.GregorianCalendar getResultTime()
public java.lang.String getGeneralMessage()
public ProcessStatistics getProcessStatistics()
public JobStatistics[] getJobStatistics()
public java.lang.String getCurrentState()
public double getAvailableDiskSpace()
public double getAvailableMemory()
public int getCurrentJobCount()
public int getTotalJobsSoFar()
public java.util.GregorianCalendar getTimeLastJobEnded()
public double getTimeLastJobTook()
public java.util.GregorianCalendar getTimeServiceStarted()
public double getServiceUtilization()
public java.util.HashMap<java.lang.String,java.lang.String> getOtherResults()
public int getOtherResultNumber()
public java.lang.String getOtherResultValueByName(java.lang.String name)
name
- holds the name of the other info to get.
public java.lang.String getOtherResultDescriptionByName(java.lang.String name)
name
- holds the name of the other info to get.
public java.lang.String[] getOtherResultNames()
public java.lang.String[] getOtherResultValues()
public java.lang.String[] getOtherResultDescriptions()
public int getVariableNumber()
public int getObjectiveNumber()
public int getConstraintNumber()
public int getSolutionNumber()
public double[] getOptimalPrimalVariableValues(int objIdx)
objIdx
- holds the objective index the optimal value corresponds to.
public java.lang.String[] getOptimalPrimalVariableStringValues(int objIdx)
objIdx
- holds the objective index the optimal value corresponds to.
public double[] getOptimalDualVariableValues(int objIdx)
objIdx
- holds the objective index the optimal value corresponds to.
public OptimizationSolution getSolution(int solIdx)
solIdx
- holds the solution index to get the solution.
public OptimizationSolutionStatus getSolutionStatus(int solIdx)
solIdx
- holds the solution index to get the solution status.
OptimizationSolutionStatus
public java.lang.String getSolutionStatusType(int solIdx)
solIdx
- holds the solution index to get the solution status type.
public java.lang.String getSolutionStatusDescription(int solIdx)
solIdx
- holds the solution index to get the solution status description.
public OptimizationSolutionSubstatus[] getSolutionSubStatuses(int solIdx)
solIdx
- holds the solution index to get the solution substatuses.
org.optimizationservices.oscommon.datastructure.osresult.OptimizationSolutionSubstatus;
public java.lang.String getSolutionMessage(int solIdx)
solIdx
- holds the solution index to get the solution message.
public int getSolutionObjectiveIndex(int solIdx)
solIdx
- holds the solution index to get the variable string values.
public double[] getVariableValues(int solIdx)
solIdx
- holds the solution index to get the variable values.
public VariableValues getSparseVariableValues(int solIdx)
solIdx
- holds the solution index to get the sparse variable values.
VariableValues
,
VarValue
public java.lang.String[] getVariableStringValues(int solIdx)
solIdx
- holds the solution index to get the variable string values.
public OtherVariableResult[] getOtherVariableResults(int solIdx)
solIdx
- holds the solution index to get the other variable results.
OtherVariableResult
,
OtherVarResult
public double[] getObjectiveValues(int solIdx)
solIdx
- holds the solution index to get the objective values.
public OtherObjectiveResult[] getOtherObjectiveResults(int solIdx)
solIdx
- holds the solution index to get the other objective results.
OtherObjectiveResult
,
OtherObjResult
public double[] getDualVariableValues(int solIdx)
solIdx
- holds the solution index to get the dual variable values.
public OtherConstraintResult[] getOtherConstraintResults(int solIdx)
solIdx
- holds the solution index to get the other constraint results.
OtherConstraintResult
,
OtherConResult
public OtherOptimizationResult[] getOtherOptimizationResults(int solIdx)
solIdx
- holds the solution index to get the other optimization results.
OtherOptimizationResult
public OSAnalysis getOSAnalysis()
OSAnalysis
public static void main(java.lang.String[] argv)
argv
- command line arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |