|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.optimizationservices.oscommon.representationparser.OSgLWriter
org.optimizationservices.oscommon.representationparser.OSaLWriter
public class OSaLWriter
The OSaLWriter
class is used to construct an instance that follows
the OSaL format.
Field Summary |
---|
Fields inherited from class org.optimizationservices.oscommon.representationparser.OSgLWriter |
---|
m_document |
Constructor Summary | |
---|---|
OSaLWriter()
constructor. |
Method Summary | |
---|---|
boolean |
addOtherAnalysis(java.lang.String name,
java.lang.String value,
java.lang.String description)
Add an other analysis element. |
static void |
main(java.lang.String[] argv)
main for test purposes. |
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 |
setOSAnalysis(OSAnalysis osAnalysis)
set the OSAnalysis, a standard os analysis interface. |
boolean |
setOtherAnalyses(java.lang.String[] names,
java.lang.String[] values,
java.lang.String[] descriptions)
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. |
Methods inherited from class org.optimizationservices.oscommon.representationparser.OSgLWriter |
---|
getDocument, setDocument, writeToFile, writeToSring, writeToStandardOutput |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OSaLWriter()
Method Detail |
---|
public boolean setOSAnalysis(OSAnalysis osAnalysis) throws java.lang.Exception
osAnalysis
- holds the standard os analysis interface.
java.lang.Exception
public boolean setAnalysisStatus(AnalysisStatus status)
status
- holds the analysis status.
public boolean setServiceURI(java.lang.String serviceURI)
serviceURI
- holds the service URI.
public boolean setServiceName(java.lang.String serviceName)
serviceName
- holds the service name.
public boolean setInstanceName(java.lang.String instanceName)
instanceName
- holds the instance name.
public boolean setJobID(java.lang.String jobID)
jobID
- holds the jobID.
public boolean setAnalysisTime(java.util.GregorianCalendar time)
time
- holds the analysis time.
public boolean setAnalysisMessage(java.lang.String message)
message
- holds the analysis message.
public boolean setVariableNumber(int variableNumber)
variableNumber
- holds the number of variables
public boolean setObjectiveNumber(int objectiveNumber)
objectiveNumber
- holds the number of objectives
public boolean setConstraintNumber(int constraintNumber)
constraintNumber
- holds the number of constraints
public boolean setInstanceAnalysis(InstanceAnalysis instanceAnalysis)
instanceAnalysis
- holds the analysis of the entire instance.
setVariableNumber(int)
,
setObjectiveNumber(int)
,
setConstraintNumber(int)
public boolean setVariableAnalysis(VariableAnalysis variableAnalysis)
variableAnalysis
- holds the analysis of the variables.
setVariableNumber(int)
,
setObjectiveNumber(int)
,
setConstraintNumber(int)
public boolean setObjectiveAnalysis(ObjectiveAnalysis objectiveAnalysis)
objectiveAnalysis
- holds the analysis of the objectives.
setVariableNumber(int)
,
setObjectiveNumber(int)
,
setConstraintNumber(int)
public boolean setConstraintAnalysis(ConstraintAnalysis constraintAnalysis)
constraintAnalysis
- holds the analysis of the constraints.
setVariableNumber(int)
,
setObjectiveNumber(int)
,
setConstraintNumber(int)
public boolean setLinearConstraintCoefficientAnalysis(LinearConstraintCoefficientAnalysis linearConstraintCoefficientAnalysis)
linearConstraintCoefficients
- holds the analysis of the linear constraint coefficients.
setVariableNumber(int)
,
setObjectiveNumber(int)
,
setConstraintNumber(int)
public boolean setQuadraticCoefficientAnalysis(QuadraticCoefficientAnalysis quadraticCoefficientAnalysis)
quadraticCoefficientAnalysis
- holds the analysis of the entire quadratic coefficients.
setVariableNumber(int)
,
setObjectiveNumber(int)
,
setConstraintNumber(int)
public boolean setNonlinearExpressionAnalysis(NonlinearExpressionAnalysis nonlinearExpressionAnalysis)
nonlinearExpressionAnalysis
- holds the analysis of the entire nonlinear expressions.
setVariableNumber(int)
,
setObjectiveNumber(int)
,
setConstraintNumber(int)
public boolean setOtherAnalyses(java.lang.String[] names, java.lang.String[] values, java.lang.String[] descriptions)
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 boolean addOtherAnalysis(java.lang.String name, java.lang.String value, java.lang.String description)
name
- holds the name of the other analysis element. It is required.value
- holds the value of the other analysis element, empty String "" if none.description
- holds the description of the other analysis element, empty String "" if none.
setVariableNumber(int)
,
setObjectiveNumber(int)
,
setConstraintNumber(int)
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 |