|
||||||||||
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.OSsLReader
public class OSsLReader
The
Field Summary |
---|
Fields inherited from class org.optimizationservices.oscommon.representationparser.OSgLReader |
---|
m_document |
Constructor Summary | |
---|---|
OSsLReader()
Constructor. |
|
OSsLReader(boolean validate)
constructor. |
Method Summary | |
---|---|
java.util.HashMap |
getInput()
Get the hash map of the inputs of name-value pairs for the simulation. |
java.lang.String |
getInputByName(java.lang.String name)
Get the string value from the input hash map of the simulation given the input name. |
java.lang.String[] |
getInputNames()
Get the names of all the simulation inputs in an array of string. |
int |
getInputNumber()
Get the number of inputs of the simulation. |
java.util.HashMap<java.lang.String,java.lang.String> |
getInputOrOutput(boolean input)
Get the hash map of the input or output of name-value pairs for the simulation. |
java.lang.String[] |
getInputValues()
Get the values of all the simulation inputs in an array of string. |
OSSimulation |
getOSSimulation()
get the standard OSSimulation, a local interface for storing Optimization Services simulation. |
java.util.HashMap |
getOutput()
Get the hash map of the outputs of name-value pairs for the simulation. |
java.lang.String |
getOutputByName(java.lang.String name)
Get the string value from the output hash map of the simulation given the output name. |
java.lang.String[] |
getOutputNames()
Get the names of all the simulation outputs in an array of string. |
int |
getOutputNumber()
Get the number of outputs of the simulation. |
java.lang.String[] |
getOutputValues()
Get the values of all the simulation outputs in an array of string. |
SimulationElement[] |
getSimulationInputElements()
get simulation input elements. |
SimulationElement[] |
getSimulationOutputElements()
get simulation output elements. |
static void |
main(java.lang.String[] argv)
main for test purposes. |
boolean |
replaceInputElementValue(java.lang.String name,
java.lang.String value)
Replace an input el element's value. |
boolean |
replaceOutputElementValue(java.lang.String name,
java.lang.String value)
Replace an output el element's value. |
void |
setInputOrOutput(boolean input,
java.util.HashMap<java.lang.String,java.lang.String> hashMap)
Set the hash map of the input or output of name-value pairs for the simulation. |
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 OSsLReader(boolean validate)
validate
- holds whether the reader should be validating against the schema or not.public OSsLReader()
Method Detail |
---|
public OSSimulation getOSSimulation() throws java.lang.Exception
java.lang.Exception
- if there are errors getting the OSSimulation.public SimulationElement[] getSimulationInputElements()
SimulationElement
public SimulationElement[] getSimulationOutputElements()
SimulationElement
public java.util.HashMap<java.lang.String,java.lang.String> getInputOrOutput(boolean input)
input
- holds whether to get input or output of OSsL. If true, will get the input.
public void setInputOrOutput(boolean input, java.util.HashMap<java.lang.String,java.lang.String> hashMap)
input
- holds whether to set input or output of OSsL. If true, will set the input.hashMap
- holds the hash map to set.public java.util.HashMap getInput()
public int getInputNumber()
public java.lang.String getInputByName(java.lang.String name)
name
- holds the input name of the simulation to be retrieved.
public java.lang.String[] getInputNames()
public java.lang.String[] getInputValues()
public boolean replaceInputElementValue(java.lang.String name, java.lang.String value)
name
- holds the name of the input el element which value is to be replaced.value
- holds the new value of the input el element to replace.
public java.util.HashMap getOutput()
public int getOutputNumber()
public java.lang.String getOutputByName(java.lang.String name)
name
- holds the output name of the simulation to be retrieved.
public java.lang.String[] getOutputNames()
public java.lang.String[] getOutputValues()
public boolean replaceOutputElementValue(java.lang.String name, java.lang.String value)
name
- holds the name of the output el element which value is to be replaced.value
- holds the new value of the output el element to replace.
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 |