genDevs.devsBridge.proxy
Class InitializableAtomicCorbaFactory

java.lang.Object
  extended by GenCol.entity
      extended by genDevs.modeling.devs
          extended by genDevs.modeling.atomic
              extended by simView.ViewableAtomic
                  extended by genDevs.devsBridge.proxy.ViewableAtomicDevs
                      extended by genDevs.devsBridge.proxy.InitializeableAtomicDevs
                          extended by genDevs.devsBridge.proxy.InitializableAtomicCorbaFactory
All Implemented Interfaces:
devsBridge.XMLInitModelOperations, devsBridge.XMLParamInitModelOperations, devsBridge.XMLStateInitModelOperations, GenCol.EntityInterface, DevsInitI, DevsPortsI, genDevs.modeling.IOBasicDevs, genDevs.modeling.IODevs, simView.ViewableComponent

public class InitializableAtomicCorbaFactory
extends InitializeableAtomicDevs

proxy for the devsModel which is obtained from a DevsFactory which located at specified CorbaLoc

Author:
twutz

Field Summary
protected  devsBridge.DevsFactory factory
           
protected  ORBHelper.ORBInfo orbInfo
           
 
Fields inherited from class genDevs.devsBridge.proxy.ViewableAtomicDevs
devsMod, trans
 
Fields inherited from class simView.ViewableAtomic
backgroundColor, base, view
 
Fields inherited from class genDevs.modeling.atomic
a, INFINITY, mySim, phase, sigma
 
Fields inherited from class genDevs.modeling.devs
mh
 
Fields inherited from class GenCol.entity
name
 
Constructor Summary
InitializableAtomicCorbaFactory(ORBHelper.ORBInfo orbInfo, java.lang.String host, int port, java.lang.String factoryName, java.lang.String modelName, java.lang.String translatorName, int timeoutHours, java.lang.String name, MessageTranslator trans, java.lang.String params)
          constructs a new proxy for the DevsModel obtained from the factory
InitializableAtomicCorbaFactory(ORBHelper.ORBInfo orbInfo, java.lang.String corbaLoc, java.lang.String modelName, java.lang.String translatorName, int timeoutHours, java.lang.String name, MessageTranslator trans, java.lang.String params)
          constructs a new proxy for the DevsModel obtained from the factory
 
Method Summary
 void deltcon(double arg0, genDevs.modeling.MessageInterface arg0)
           
 void deltext(double arg0, genDevs.modeling.MessageInterface arg0)
           
 void deltint()
           
 void destruct()
           
protected  void finalize()
           
 void initialize()
           
 genDevs.modeling.MessageInterface Out()
           
 void showState()
           
 double ta()
           
 
Methods inherited from class genDevs.devsBridge.proxy.InitializeableAtomicDevs
getInitModel, getParameters, getState, initializeState, setModelParameters
 
Methods inherited from class genDevs.devsBridge.proxy.ViewableAtomicDevs
deltcon, deltext, deltint, initialize, Out, refreshPortNames
 
Methods inherited from class simView.ViewableAtomic
addTestInput, addTestInput, createView, getAtomicView, getBackgroundColor, getFormattedPhase, getFormattedSigma, getFormattedTL, getFormattedTN, getInportNames, getLayoutName, getNumInports, getNumOutports, getOutportNames, getPreferredLocation, getSimulator, getTestInputs, getTooltipText, getView, isHidden, setBackgroundColor, setHidden, setLayoutName, setPreferredLocation, setSigma
 
Methods inherited from class genDevs.modeling.atomic
Continue, deltcon, deltext, getActivity, getPhase, getSigma, getSim, holdIn, holdIn, out, passivate, passivateIn, phaseIs, setSimulator, showState, startActiviry, stringState, ta, toString
 
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, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface genDevs.devsBridge.atomicExt.DevsPortsI
getInportNames, getOutportNames
 
Methods inherited from interface genDevs.modeling.IOBasicDevs
getActivity, setSimulator
 
Methods inherited from interface genDevs.modeling.IODevs
addInport, addOutport, makeContent, messageOnPort
 
Methods inherited from interface GenCol.EntityInterface
equalName, getExtRep, getName
 
Methods inherited from interface simView.ViewableComponent
getName
 

Field Detail

orbInfo

protected ORBHelper.ORBInfo orbInfo

factory

protected devsBridge.DevsFactory factory
Constructor Detail

InitializableAtomicCorbaFactory

public InitializableAtomicCorbaFactory(ORBHelper.ORBInfo orbInfo,
                                       java.lang.String corbaLoc,
                                       java.lang.String modelName,
                                       java.lang.String translatorName,
                                       int timeoutHours,
                                       java.lang.String name,
                                       MessageTranslator trans,
                                       java.lang.String params)
                                throws org.omg.CORBA.UserException
constructs a new proxy for the DevsModel obtained from the factory

Parameters:
name - local name of the atomic model
orb - Object Request Broker(ORB) to locate the server
corbaLoc - location of the object of the form "corbaname::"+host+":"+port+"#"+servernamea Corba name of the form
modelName - the fully qualified classname of the devs-model class at the factory side
translatorName - the fully qualified classname of the translator class at the factory side
timeoutHours - a timeout when the CORBA-object can be destructed
trans - the Translator on the client side
Throws:
org.omg.CORBA.UserException - on errors on CORBA

InitializableAtomicCorbaFactory

public InitializableAtomicCorbaFactory(ORBHelper.ORBInfo orbInfo,
                                       java.lang.String host,
                                       int port,
                                       java.lang.String factoryName,
                                       java.lang.String modelName,
                                       java.lang.String translatorName,
                                       int timeoutHours,
                                       java.lang.String name,
                                       MessageTranslator trans,
                                       java.lang.String params)
                                throws org.omg.CORBA.UserException
constructs a new proxy for the DevsModel obtained from the factory

Parameters:
name - local name of the atomic model
orb - Object Request Broker(ORB) to locate the server
host - IP or name of the host
port - port at which to find the ORB naming service
factoryName - the name of the DevsFactoryServer
modelName - the fully qualified classname of the devs-model class at the factory side
translatorName - the fully qualified classname of the translator class at the factory side
timeoutHours - a timeout when the CORBA-object can be destructed
trans - the Translator on the client side
Throws:
org.omg.CORBA.UserException - on errors on CORBA
Method Detail

destruct

public void destruct()
              throws org.omg.CORBA.UserException,
                     devsBridge.DevsCorbaException
Throws:
org.omg.CORBA.UserException
devsBridge.DevsCorbaException

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

deltext

public void deltext(double arg0,
                    genDevs.modeling.MessageInterface arg0)

deltcon

public void deltcon(double arg0,
                    genDevs.modeling.MessageInterface arg0)

deltint

public void deltint()

Out

public genDevs.modeling.MessageInterface Out()

ta

public double ta()

initialize

public void initialize()

showState

public void showState()