genDevs.devsBridge.translator
Class PortNameMsgTranslator

java.lang.Object
  extended by genDevs.devsBridge.translator.MsgTranslatorAbstract
      extended by genDevs.devsBridge.translator.PortNameMsgTranslator
All Implemented Interfaces:
MessageTranslator

public class PortNameMsgTranslator
extends MsgTranslatorAbstract
implements MessageTranslator


Field Summary
 
Fields inherited from class genDevs.devsBridge.translator.MsgTranslatorAbstract
modelAdapter, modelProxy, orb
 
Constructor Summary
PortNameMsgTranslator(org.omg.CORBA.ORB orb)
           
 
Method Summary
static devsBridge.MsgEntity cont2entity(org.omg.CORBA.ORB orb, genDevs.modeling.ContentInterface cont)
          Constructs a new MsgEntity for given content.
 genDevs.modeling.MessageInterface corba2DevsInputs(devsBridge.MsgEntity[] corbaMsg)
           
 genDevs.modeling.MessageInterface corba2DevsOutputs(devsBridge.MsgEntity[] corbaMsg)
           
 devsBridge.MsgEntity[] devs2CorbaInputs(genDevs.modeling.MessageInterface javaMsg)
           
 devsBridge.MsgEntity[] devs2CorbaOutputs(genDevs.modeling.MessageInterface javaMsg)
           
static genDevs.modeling.ContentInterface entity2cont(devsBridge.MsgEntity msg)
          Constructs a Content from given devsCorba.MsgEntity.
 
Methods inherited from class genDevs.devsBridge.translator.MsgTranslatorAbstract
setAdapter, setProxy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface genDevs.devsBridge.translator.MessageTranslator
setAdapter, setProxy
 

Constructor Detail

PortNameMsgTranslator

public PortNameMsgTranslator(org.omg.CORBA.ORB orb)
Method Detail

cont2entity

public static devsBridge.MsgEntity cont2entity(org.omg.CORBA.ORB orb,
                                               genDevs.modeling.ContentInterface cont)
                                        throws devsBridge.DevsCorbaException
Constructs a new MsgEntity for given content. Desicion of type is done by cont.getPortName().

Parameters:
cont - ContentInterface with value of type doubleEnt
Returns:
a devsCorba.MsgEntity
Throws:
devsBridge.DevsCorbaException

entity2cont

public static genDevs.modeling.ContentInterface entity2cont(devsBridge.MsgEntity msg)
                                                     throws devsBridge.DevsCorbaException
Constructs a Content from given devsCorba.MsgEntity. Desicion of type is done by msg.port.

Parameters:
msg - a devsCorba.MsgEntity holding port and the name of the content
Returns:
content with a value of type doubleEnt
Throws:
devsBridge.DevsCorbaException

devs2CorbaInputs

public devsBridge.MsgEntity[] devs2CorbaInputs(genDevs.modeling.MessageInterface javaMsg)
                                        throws devsBridge.DevsCorbaException
Specified by:
devs2CorbaInputs in interface MessageTranslator
Throws:
devsBridge.DevsCorbaException

devs2CorbaOutputs

public devsBridge.MsgEntity[] devs2CorbaOutputs(genDevs.modeling.MessageInterface javaMsg)
                                         throws devsBridge.DevsCorbaException
Specified by:
devs2CorbaOutputs in interface MessageTranslator
Throws:
devsBridge.DevsCorbaException

corba2DevsInputs

public genDevs.modeling.MessageInterface corba2DevsInputs(devsBridge.MsgEntity[] corbaMsg)
                                                   throws devsBridge.DevsCorbaException
Specified by:
corba2DevsInputs in interface MessageTranslator
Throws:
devsBridge.DevsCorbaException

corba2DevsOutputs

public genDevs.modeling.MessageInterface corba2DevsOutputs(devsBridge.MsgEntity[] corbaMsg)
                                                    throws devsBridge.DevsCorbaException
Specified by:
corba2DevsOutputs in interface MessageTranslator
Throws:
devsBridge.DevsCorbaException