|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.optimizationservices.oscommon.localinterface.OSSimulation
public class OSSimulation
The OSSimulation
class is a local interface for storing Optimization Services
simulation. Its design follows the Optimization Services simulation Language (OSsL).
All the data structures in this class are standards specified in OSsL.
Field Summary | |
---|---|
SimulationInput |
input
input holds the simulation input. |
SimulationOutput |
output
output holds the simulation output. |
Constructor Summary | |
---|---|
OSSimulation()
Default constructor. |
Method Summary | |
---|---|
SimulationElement[] |
getSimulationInputElements()
get simulation input elements. |
SimulationElement[] |
getSimulationOutputElements()
get simulation output elements. |
static void |
main(java.lang.String[] args)
main for test purposes. |
OSSimulation |
readOSsL(java.lang.String ossl,
boolean isFile,
boolean validate)
read an OSsL instance and return and OSSimulation object. |
boolean |
setSimulationInputElements(SimulationElement[] simulationInputElements)
set simulation input elements. |
boolean |
setSimulationOutputElements(SimulationElement[] simulationOutputElements)
set simulation output elements. |
java.lang.String |
writeOSsL()
write the OSSimulation to an ossl xml string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public SimulationInput input
public SimulationOutput output
Constructor Detail |
---|
public OSSimulation()
Method Detail |
---|
public OSSimulation readOSsL(java.lang.String ossl, boolean isFile, boolean validate) throws java.lang.Exception
ossl
- holds the optimization simulation in a string which format follows the
Optimization Services simulation Language (OSsL) schema.isFile
- holds whether the ossl string is a file name or a string that literally holds the ossl 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 OSSimulation.public java.lang.String writeOSsL() throws java.lang.Exception
java.lang.Exception
- if there are errors in writing the ossl string.public SimulationElement[] getSimulationInputElements()
SimulationElement
public boolean setSimulationInputElements(SimulationElement[] simulationInputElements)
simulationInputElements
- holds an array of simulation input elements.
Each member of array is a simulation element.
SimulationElement
public SimulationElement[] getSimulationOutputElements()
SimulationElement
public boolean setSimulationOutputElements(SimulationElement[] simulationOutputElements)
simulationOutputElements
- holds an array of simulation output elements.
Each member of array is a simulation element.
SimulationElement
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 |