org.optimizationservices.oscommon.communicationagent
Class OSSimulationAgent

java.lang.Object
  extended by org.optimizationservices.oscommon.communicationagent.OSSimulationAgent
All Implemented Interfaces:
OScL

public class OSSimulationAgent
extends java.lang.Object
implements OScL

The OSSimulationAgent class implements all the OScL interface. Thus it is OS-type solver. It implements all the methods as specified in the Optimization Services (OS) Framework, specifically the Optimization Services call Language (OScL).

The OSSimulationAgent class is a library class that contains methods to help simulation agents communicate with Optimization Services (OS) simulations as specified by the Optimization Services framework. It hides all the SOAP protocol related technical details from an optimization user.

Since:
OS 1.0
Version:
1.0, 03/14/2004
Author:
Robert Fourer, Jun Ma, Kipp Martin
See Also:
OScL

Field Summary
 java.lang.String simulationAddress
          simulationAddress holds the address (uri/url) of the Optimization Services (OS) simulation.
 
Constructor Summary
OSSimulationAgent()
          Constructor.
OSSimulationAgent(java.lang.String simulationAddress)
          Constructor.
 
Method Summary
 java.lang.String call(java.lang.String osslInput, java.lang.String osol)
          Call a simulation service whose input is given by a string following the Optimization Services simulation Language (OSsL) schema and returns the analysis in a string that follows the Optimization Services simulation Language (OSsL) schema, since OSsL specifies both simulation service input and output.
static void main(java.lang.String[] args)
          main for test purposes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

simulationAddress

public java.lang.String simulationAddress
simulationAddress holds the address (uri/url) of the Optimization Services (OS) simulation.

Constructor Detail

OSSimulationAgent

public OSSimulationAgent()
Constructor.


OSSimulationAgent

public OSSimulationAgent(java.lang.String simulationAddress)
Constructor.

Parameters:
simulationAddress - holds the address (uri/url) of the Optimization Services (OS) simulation.
Method Detail

call

public java.lang.String call(java.lang.String osslInput,
                             java.lang.String osol)
Call a simulation service whose input is given by a string following the Optimization Services simulation Language (OSsL) schema and returns the analysis in a string that follows the Optimization Services simulation Language (OSsL) schema, since OSsL specifies both simulation service input and output.

Specified by:
call in interface OScL
Parameters:
OSsL - holds the simulation input in a string which format follows the Optimization Services simulation Language (OSsL) schema.
osol - holds the optimization option in a string which format follows the Optimization Services option Language (OSoL) schema.
Returns:
osslInput the simulation output in a string which format follows the Optimization Services simulation Language (OSsL) schema.

main

public static void main(java.lang.String[] args)
main for test purposes.

Parameters:
argv - command line arguments.