genDevs.devsBridge.translator
Class StringMsgTranslator

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

public class StringMsgTranslator
extends MsgTranslatorAbstract
implements MessageTranslator


Field Summary
 
Fields inherited from class genDevs.devsBridge.translator.MsgTranslatorAbstract
modelAdapter, modelProxy, orb
 
Constructor Summary
StringMsgTranslator(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

StringMsgTranslator

public StringMsgTranslator(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. Content holds a Value of type entity.

Parameters:
cont - ContentInterface with value of type entity
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. Content will have an entity with a given name

Parameters:
msg - a devsCorba.MsgEntity holding port and the name of the content
Returns:
content with a value of type entity
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