|
||||||||||
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.OSsLWriter
public class OSsLWriter
The OSsLWriter
class is used to construct an instance that follows
the OSsL format.
Field Summary |
---|
Fields inherited from class org.optimizationservices.oscommon.representationparser.OSgLWriter |
---|
m_document |
Constructor Summary | |
---|---|
OSsLWriter()
constructor |
Method Summary | |
---|---|
static void |
main(java.lang.String[] argv)
main for test purposes. |
boolean |
setInput(java.lang.String[] names,
java.lang.String[] types,
java.lang.String[] values)
Set the input related elements. |
boolean |
setInputElement(java.lang.String name,
java.lang.String type,
java.lang.String value)
Set an input el element. |
boolean |
setOSSimulation(OSSimulation osSimulation)
set the OSSimulation, a standard os simulation interface. |
boolean |
setOutput(java.lang.String[] names,
java.lang.String[] types,
java.lang.String[] values)
Set the output related elements. |
boolean |
setOutputElement(java.lang.String name,
java.lang.String type,
java.lang.String value)
Set an output el element. |
boolean |
setSimulationInputElements(SimulationElement[] simulationInputElements)
set simulation input elements. |
boolean |
setSimulationOutputElements(SimulationElement[] simulationOutputElements)
set simulation output elements. |
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 OSsLWriter()
Method Detail |
---|
public boolean setOSSimulation(OSSimulation osSimulation) throws java.lang.Exception
osSimulation
- holds the standard os simulation interface.
java.lang.Exception
public boolean setSimulationInputElements(SimulationElement[] simulationInputElements)
simulationInputElements
- holds an array of simulation input elements.
Each member of array is a simulation element.
SimulationElement
public boolean setSimulationOutputElements(SimulationElement[] simulationOutputElements)
simulationOutputElements
- holds an array of simulation output elements.
Each member of array is a simulation element.
SimulationElement
public boolean setInput(java.lang.String[] names, java.lang.String[] types, java.lang.String[] values)
names
- holds the names of the inputs. It is required.types
- holds the types of the inputs, either string (default) or link.values
- holds the values of inputs. It is required.
public boolean setInputElement(java.lang.String name, java.lang.String type, java.lang.String value)
name
- holds the name of the input el element. It is required.type
- holds the type of the input el element, either string (default) or link.value
- holds the value of the input el element. It is required.
public boolean setOutput(java.lang.String[] names, java.lang.String[] types, java.lang.String[] values)
names
- holds the names of the outputs. It is required.types
- holds the types of the outputs, either string (default) or link.values
- holds the values of outputs. It is required.
public boolean setOutputElement(java.lang.String name, java.lang.String type, java.lang.String value)
name
- holds the name of the output el element. It is required.type
- holds the type of the output el element, either string (default) or link.value
- holds the value of the output el element. It is required.
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 |