genDevs.devsBridge.proxy
Class atomicCorbaFactory

java.lang.Object
  extended by GenCol.entity
      extended by genDevs.modeling.devs
          extended by genDevs.modeling.atomic
              extended by genDevs.devsBridge.proxy.atomicDevs
                  extended by genDevs.devsBridge.proxy.atomicCorbaFactory
All Implemented Interfaces:
GenCol.EntityInterface, genDevs.modeling.IOBasicDevs, genDevs.modeling.IODevs

public class atomicCorbaFactory
extends atomicDevs

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

Author:
twutz

Field Summary
protected  org.omg.CORBA.ORB orb
           
 
Fields inherited from class genDevs.devsBridge.proxy.atomicDevs
devsMod, trans
 
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
atomicCorbaFactory(org.omg.CORBA.ORB orb, 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)
          constructs a new proxy for the DevsModel obtained from the factory
atomicCorbaFactory(org.omg.CORBA.ORB orb, java.lang.String corbaLoc, java.lang.String modelName, java.lang.String translatorName, int timeoutHours, java.lang.String name, MessageTranslator trans)
          constructs a new proxy for the DevsModel obtained from the factory
 
Method Summary
 void showState()
           
 double ta()
           
 
Methods inherited from class genDevs.devsBridge.proxy.atomicDevs
deltcon, deltext, deltint, initialize, Out
 
Methods inherited from class genDevs.modeling.atomic
Continue, deltcon, deltext, getActivity, getPhase, getSigma, getSim, holdIn, holdIn, out, passivate, passivateIn, phaseIs, setSigma, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 

Field Detail

orb

protected org.omg.CORBA.ORB orb
Constructor Detail

atomicCorbaFactory

public atomicCorbaFactory(org.omg.CORBA.ORB orb,
                          java.lang.String corbaLoc,
                          java.lang.String modelName,
                          java.lang.String translatorName,
                          int timeoutHours,
                          java.lang.String name,
                          MessageTranslator trans)
                   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

atomicCorbaFactory

public atomicCorbaFactory(org.omg.CORBA.ORB orb,
                          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)
                   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

ta

public double ta()

showState

public void showState()