javaSim
Class OptimGO
java.lang.Object
GenCol.entity
genDevs.modeling.devs
genDevs.modeling.digraph
simView.ViewableDigraph
genDevs.devsBridge.atomicExt.InitializeableDigraph
javaSim.OptimGO
- All Implemented Interfaces:
- devsBridge.XMLInitModelOperations, devsBridge.XMLParamInitModelOperations, devsBridge.XMLStateInitModelOperations, GenCol.EntityInterface, genDevs.devsBridge.atomicExt.DOMInitModelOperations, genDevs.modeling.Coupled, genDevs.modeling.coupledDevs, genDevs.modeling.IOBasicDevs, genDevs.modeling.IODevs, simView.ViewableComponent
public class OptimGO
- extends genDevs.devsBridge.atomicExt.InitializeableDigraph
Experimental Setup of Generator - PowerOptimizer - Observer,
demonstrates the usage of DEVS models outside Java.
Generator and Observer are implemented in ADevs.
The models are obtained from ADevsFactory. These models
can be parameterized by xml Strings.
It must be started before initializing this model.
PowerOptimizer is implemented in MS-Excel
is a CorbaDevs obtained by NamingService and Name of variable serverName (default: vbPowerOptimizer )
Server must be started from first Sheet in MS-Excel file otimizerSvr.xls
- Adjust the Settings of finding the NamingService by copying the file exec/serverSetup.xml
into the execution directory, and adjust the entry "NamingHostPort".
- Start the naming Service (corbaNaming.bat)
- Start the ADevs model server (ADevsFactory.bat)
- Start the Optimizer model server (Open vb_bridge/examples/optimizerSvr.xls, adjust NamingService port and push button "start Server" in worksheet "server"
- excute this class
- Author:
- twutz
Field Summary |
genDevs.devsBridge.atomicExt.DevsInitI |
genr
|
genDevs.devsBridge.atomicExt.DevsInitI |
obsvr
|
(package private) static java.lang.String |
serverName
|
Fields inherited from class simView.ViewableDigraph |
base, blackBox, layoutChanged, preferredSize, view |
Fields inherited from class genDevs.modeling.digraph |
components, coordinator, cp |
Fields inherited from class genDevs.modeling.devs |
mh |
Fields inherited from class GenCol.entity |
name |
Methods inherited from class genDevs.devsBridge.atomicExt.InitializeableDigraph |
getState, initializeState, setModelParameters |
Methods inherited from class simView.ViewableDigraph |
addTestInput, addTestInput, createView, getDigraphView, getInportNames, getLayoutChanged, getLayoutName, getNumInports, getNumOutports, getOutportNames, getPreferredLocation, getPreferredSize, getSimulator, getTestInputs, getView, isBlackBox, isHidden, layoutForSimViewOverride, setBlackBox, setHidden, setLayoutChanged, setLayoutName, setPreferredLocation, setPreferredSize |
Methods inherited from class genDevs.modeling.digraph |
add, addCoupling, deltcon, deltext, deltint, getActivity, getComponents, getCoordinator, getCouprel, initialize, iterator, Out, setCoordinator, setSimulator, showState, ta, toString, withName |
Methods inherited from class genDevs.modeling.devs |
addInport, addOutport, makeContent, makeContent, messageOnPort, messageOnPort |
Methods inherited from class GenCol.entity |
addSelf, eq, equalName, equals, getExtRep, getName, print, removeSelf |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface simView.ViewableComponent |
getName |
Methods inherited from interface genDevs.modeling.IODevs |
addInport, addOutport, makeContent, messageOnPort |
serverName
static java.lang.String serverName
genr
public genDevs.devsBridge.atomicExt.DevsInitI genr
obsvr
public genDevs.devsBridge.atomicExt.DevsInitI obsvr
OptimGO
public OptimGO()
setModelParameters
public void setModelParameters(org.w3c.dom.Node node)
throws devsBridge.DevsCorbaException
- Throws:
devsBridge.DevsCorbaException
getParameters
public java.lang.String getParameters()
- Specified by:
getParameters
in interface devsBridge.XMLParamInitModelOperations
- Overrides:
getParameters
in class genDevs.devsBridge.atomicExt.InitializeableDigraph
initializeState
public void initializeState(org.w3c.dom.Node node)
throws devsBridge.DevsCorbaException
- Throws:
devsBridge.DevsCorbaException
layoutForSimView
public void layoutForSimView()
- Automatically generated by the SimView program.
Do not edit this manually, as such changes will get overwritten.
- Overrides:
layoutForSimView
in class simView.ViewableDigraph
main
public static void main(java.lang.String[] args)