genDevs.devsBridge.translator
Class IntMsgTranslator
java.lang.Object
genDevs.devsBridge.translator.MsgTranslatorAbstract
genDevs.devsBridge.translator.IntMsgTranslator
- All Implemented Interfaces:
- MessageTranslator
public class IntMsgTranslator
- extends MsgTranslatorAbstract
- implements MessageTranslator
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntMsgTranslator
public IntMsgTranslator(org.omg.CORBA.ORB orb)
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 intEnt.
- Parameters:
cont
- ContentInterface with value of type doubleEnt
- Returns:
- a devsCorba.MsgEntity
- Throws:
devsBridge.DevsCorbaException
- TODO
entity2cont
public static genDevs.modeling.ContentInterface entity2cont(devsBridge.MsgEntity msg)
throws devsBridge.DevsCorbaException
- Constructs a Content from given devsCorba.MsgEntity. Content will have an intEnt with a given value
- Parameters:
msg
- a devsCorba.MsgEntity holding port and the name of the content
- Returns:
- content with a value of type intEnt
- 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