|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.optimizationservices.oscommon.localinterface.OSAnalysis
public class OSAnalysis
The OSAnalysis
class is a local interface for storing Optimization Services
problem analysis. Its design follows the Optimization Services analysis Language (OSaL).
All the data structures in this class are standards specified in OSaL.
Developers can add service-specific analyses by extending this class.
OSInstance
,
OSResult
,
OSOption
Field Summary | |
---|---|
AnalysisData |
analysisData
analysisData holds the second child of the OSAnalysis specified by the OSaL Schema. |
AnalysisHeader |
analysisHeader
analysisHeader holds the first child of the OSAnalysis specified by the OSaL Schema. |
Constructor Summary | |
---|---|
OSAnalysis()
Default constructor. |
Method Summary | |
---|---|
java.lang.String |
getAnalysisMessage()
Get analysis message. |
AnalysisStatus |
getAnalysisStatus()
Get analysis status |
java.util.GregorianCalendar |
getAnalysisTime()
Get analysis time. |
ConstraintAnalysis |
getConstraintAnalysis()
get analysis of the constraints. |
int |
getConstraintNumber()
Get constraint number. |
InstanceAnalysis |
getInstanceAnalysis()
get analysis of the entire instance. |
java.lang.String |
getInstanceName()
Get instance name. |
java.lang.String |
getJobID()
Get job ID. |
LinearConstraintCoefficientAnalysis |
getLinearConstraintCoefficientAnalysis()
get analysis of the linear constraint coefficients. |
NonlinearExpressionAnalysis |
getNonlinearExpressionAnalysis()
get analysis of the entire nonlinear expressions. |
ObjectiveAnalysis |
getObjectiveAnalysis()
get analysis of the objectives. |
int |
getObjectiveNumber()
Get objective number. |
java.util.Hashtable<java.lang.String,java.lang.String> |
getOtherAnalysisDescriptions()
get a hashmap of other analysis descriptions. |
java.lang.String[] |
getOtherAnalysisNames()
get a string array of names of other analyses. |
java.util.Hashtable<java.lang.String,java.lang.String> |
getOtherAnalysisValues()
get a hashmap of other analysis values. |
QuadraticCoefficientAnalysis |
getQuadraticCoefficientAnalysis()
get analysis of the entire quadratic coefficients. |
java.lang.String |
getServiceName()
Get service name. |
java.lang.String |
getServiceURI()
Get service URI. |
VariableAnalysis |
getVariableAnalysis()
get analysis of the variables |
int |
getVariableNumber()
Get variable number. |
static void |
main(java.lang.String[] args)
main for test purposes. |
OSAnalysis |
readOSaL(java.lang.String osal,
boolean isFile,
boolean validate)
read an OSaL instance and return and OSAnalysis object. |
boolean |
setAnalysisMessage(java.lang.String message)
Set analysis message. |
boolean |
setAnalysisStatus(AnalysisStatus status)
Set analysis status |
boolean |
setAnalysisTime(java.util.GregorianCalendar time)
Set analysis time. |
boolean |
setConstraintAnalysis(ConstraintAnalysis constraintAnalysis)
Set analysis of the constraints. |
boolean |
setConstraintNumber(int constraintNumber)
Set the constraint number. |
boolean |
setInstanceAnalysis(InstanceAnalysis instanceAnalysis)
Set analysis of the entire instance. |
boolean |
setInstanceName(java.lang.String instanceName)
Set instance name. |
boolean |
setJobID(java.lang.String jobID)
Set jobID. |
boolean |
setLinearConstraintCoefficientAnalysis(LinearConstraintCoefficientAnalysis linearConstraintCoefficientAnalysis)
Set analysis of the linear constraint coefficients. |
boolean |
setNonlinearExpressionAnalysis(NonlinearExpressionAnalysis nonlinearExpressionAnalysis)
Set analysis of the entire nonlinear expressions. |
boolean |
setObjectiveAnalysis(ObjectiveAnalysis objectiveAnalysis)
Set analysis of the objectives. |
boolean |
setObjectiveNumber(int objectiveNumber)
Set the objective number. |
boolean |
setOtherAnalyses(java.lang.String[] names,
java.lang.String[] descriptions,
java.lang.String[] values)
set other analyses, with their names (required), descriptions (optional) and values (optional). |
boolean |
setQuadraticCoefficientAnalysis(QuadraticCoefficientAnalysis quadraticCoefficientAnalysis)
Set analysis of the entire quadratic coefficients. |
boolean |
setServiceName(java.lang.String serviceName)
Set service name. |
boolean |
setServiceURI(java.lang.String serviceURI)
Set service URI. |
boolean |
setVariableAnalysis(VariableAnalysis variableAnalysis)
Set analysis of the variables. |
boolean |
setVariableNumber(int variableNumber)
Set the variable number. |
java.lang.String |
writeOSaL()
write the OSAnalysis to an osal xml string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public AnalysisHeader analysisHeader
public AnalysisData analysisData
Constructor Detail |
---|
public OSAnalysis()
Method Detail |
---|
public OSAnalysis readOSaL(java.lang.String osal, boolean isFile, boolean validate) throws java.lang.Exception
osal
- holds the optimization analysis in a string which format follows the
Optimization Services analysis Language (OSaL) schema.isFile
- holds whether the osal string is a file name or a string that literally holds the osal contents.validate
- holds whether the reader should be validating against the schema or not.
java.lang.Exception
- if there are errors in reading the string or setting the OSAnalyis.public java.lang.String writeOSaL() throws java.lang.Exception
java.lang.Exception
- if there are errors in writing the osal string.public AnalysisStatus getAnalysisStatus()
public boolean setAnalysisStatus(AnalysisStatus status)
status
- holds the analysis status.
public java.lang.String getServiceURI()
public boolean setServiceURI(java.lang.String serviceURI)
serviceURI
- holds the service URI.
public java.lang.String getServiceName()
public boolean setServiceName(java.lang.String serviceName)
serviceName
- holds the service name.
public java.lang.String getInstanceName()
public boolean setInstanceName(java.lang.String instanceName)
instanceName
- holds the instance name.
public java.lang.String getJobID()
public boolean setJobID(java.lang.String jobID)
jobID
- holds the jobID.
public java.util.GregorianCalendar getAnalysisTime()
public boolean setAnalysisTime(java.util.GregorianCalendar time)
time
- holds the analysis time.
public java.lang.String getAnalysisMessage()
public boolean setAnalysisMessage(java.lang.String message)
message
- holds the analysis message.
public int getVariableNumber()
public boolean setVariableNumber(int variableNumber)
variableNumber
- holds the number of variables
public int getObjectiveNumber()
public boolean setObjectiveNumber(int objectiveNumber)
objectiveNumber
- holds the number of objectives
public int getConstraintNumber()
public boolean setConstraintNumber(int constraintNumber)
constraintNumber
- holds the number of constraints
public InstanceAnalysis getInstanceAnalysis()
public boolean setInstanceAnalysis(InstanceAnalysis instanceAnalysis)
instanceAnalysis
- holds the analysis of the entire instance.
setVariableNumber(int)
,
setObjectiveNumber(int)
,
setConstraintNumber(int)
public VariableAnalysis getVariableAnalysis()
public boolean setVariableAnalysis(VariableAnalysis variableAnalysis)
variableAnalysis
- holds the analysis of the variables.
setVariableNumber(int)
,
setObjectiveNumber(int)
,
setConstraintNumber(int)
public ObjectiveAnalysis getObjectiveAnalysis()
public boolean setObjectiveAnalysis(ObjectiveAnalysis objectiveAnalysis)
objectiveAnalysis
- holds the analysis of the objectives.
setVariableNumber(int)
,
setObjectiveNumber(int)
,
setConstraintNumber(int)
public ConstraintAnalysis getConstraintAnalysis()
public boolean setConstraintAnalysis(ConstraintAnalysis constraintAnalysis)
constraintAnalysis
- holds the analysis of the constraints.
setVariableNumber(int)
,
setObjectiveNumber(int)
,
setConstraintNumber(int)
public LinearConstraintCoefficientAnalysis getLinearConstraintCoefficientAnalysis()
public boolean setLinearConstraintCoefficientAnalysis(LinearConstraintCoefficientAnalysis linearConstraintCoefficientAnalysis)
linearConstraintCoefficients
- holds the analysis of the linear constraint coefficients.
setVariableNumber(int)
,
setObjectiveNumber(int)
,
setConstraintNumber(int)
public QuadraticCoefficientAnalysis getQuadraticCoefficientAnalysis()
public boolean setQuadraticCoefficientAnalysis(QuadraticCoefficientAnalysis quadraticCoefficientAnalysis)
quadraticCoefficientAnalysis
- holds the analysis of the entire quadratic coefficients.
setVariableNumber(int)
,
setObjectiveNumber(int)
,
setConstraintNumber(int)
public NonlinearExpressionAnalysis getNonlinearExpressionAnalysis()
public boolean setNonlinearExpressionAnalysis(NonlinearExpressionAnalysis nonlinearExpressionAnalysis)
nonlinearExpressionAnalysis
- holds the analysis of the entire nonlinear expressions.
setVariableNumber(int)
,
setObjectiveNumber(int)
,
setConstraintNumber(int)
public java.lang.String[] getOtherAnalysisNames()
public java.util.Hashtable<java.lang.String,java.lang.String> getOtherAnalysisDescriptions()
public java.util.Hashtable<java.lang.String,java.lang.String> getOtherAnalysisValues()
public boolean setOtherAnalyses(java.lang.String[] names, java.lang.String[] descriptions, java.lang.String[] values)
names
- holds the names of the other analyses; it is required.descriptions
- holds the descriptions of the other analyses; null if none.values
- holds the values of the other analyses; null if none.
setVariableNumber(int)
,
setObjectiveNumber(int)
,
setConstraintNumber(int)
public static void main(java.lang.String[] args)
argv
- command line arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |