diff options
author | Juergen Haug | 2015-06-25 22:35:55 +0000 |
---|---|---|
committer | Juergen Haug | 2015-06-26 07:53:34 +0000 |
commit | 5668fc944d079dc3ccc3b20f81c0293355f616cf (patch) | |
tree | e528d532844badf36d7baaf0589feeb144f0c02f /examples | |
parent | 7df50b1259ff7c0c68c369324fb1fa36d439806e (diff) | |
download | org.eclipse.etrice-5668fc944d079dc3ccc3b20f81c0293355f616cf.tar.gz org.eclipse.etrice-5668fc944d079dc3ccc3b20f81c0293355f616cf.tar.xz org.eclipse.etrice-5668fc944d079dc3ccc3b20f81c0293355f616cf.zip |
[doc] content for reference doc
Diffstat (limited to 'examples')
-rw-r--r-- | examples/org.eclipse.etrice.examples.c/model/Features/PortRoles.room | 134 |
1 files changed, 67 insertions, 67 deletions
diff --git a/examples/org.eclipse.etrice.examples.c/model/Features/PortRoles.room b/examples/org.eclipse.etrice.examples.c/model/Features/PortRoles.room index ff8040e07..81d89ad62 100644 --- a/examples/org.eclipse.etrice.examples.c/model/Features/PortRoles.room +++ b/examples/org.eclipse.etrice.examples.c/model/Features/PortRoles.room @@ -1,68 +1,68 @@ -RoomModel PortRoles { - - // Port role distinction only - - ActorClass InternalEndPortExample { - Structure { - Port internalEndPort : PSimpleProtocol - ActorRef actorRef1 : SimpleActorClass1 - - // internalEndPort lives 'local' - // and thus needs a Binding to port of an ActorRef - Binding internalEndPort and actorRef1.externalPort - } - Behavior { - // send/receive messages from internalEndPorts - } - } - - ActorClass ExternalEndPortExample { - Interface { - // externalEndPort is connect from 'outside' - // and thus needs a Binding from containing ActorClass - Port externalEndPort : PSimpleProtocol - } - Structure { - external Port externalEndPort - } - Behavior { - // send/receive messages from externalEndPort - } - } - - ActorClass RelayPortExample{ - Interface { - Port relayPort : PSimpleProtocol - } - Structure { - ActorRef actorRef1 : SimpleActorClass2 - - // relayPort can be directed to port of an ActorRef - Binding relayPort and actorRef1.externalPort - } - Behavior { - // relayPort not available ! - } - } - - eventdriven ProtocolClass PSimpleProtocol { - incoming { - Message message1() - } - outgoing { - Message message2() - } - } - - ActorClass SimpleActorClass2 { - Interface { - Port externalPort : PSimpleProtocol - } - } - - ActorClass SimpleActorClass1 { - Interface { - conjugated Port externalPort : PSimpleProtocol - } - }
+RoomModel PortRoles {
+
+ // Port role distinction only
+
+ ActorClass InternalEndPortExample {
+ Structure {
+ Port internalEndPort : PSimpleProtocol
+ ActorRef actorRef1 : SimpleActorClass1
+
+ // internalEndPort lives 'local'
+ // and thus needs a Binding to port of an ActorRef
+ Binding internalEndPort and actorRef1.externalPort
+ }
+ Behavior {
+ // send/receive messages from internalEndPorts
+ }
+ }
+
+ ActorClass ExternalEndPortExample {
+ Interface {
+ // externalEndPort is connect from 'outside'
+ // and thus needs a Binding from containing ActorClass
+ Port externalEndPort : PSimpleProtocol
+ }
+ Structure {
+ external Port externalEndPort
+ }
+ Behavior {
+ // send/receive messages from externalEndPort
+ }
+ }
+
+ ActorClass RelayPortExample{
+ Interface {
+ Port relayPort : PSimpleProtocol
+ }
+ Structure {
+ ActorRef actorRef1 : SimpleActorClass2
+
+ // relayPort can be directed to port of an ActorRef
+ Binding relayPort and actorRef1.externalPort
+ }
+ Behavior {
+ // relayPort not available !
+ }
+ }
+
+ eventdriven ProtocolClass PSimpleProtocol {
+ incoming {
+ Message message1()
+ }
+ outgoing {
+ Message message2()
+ }
+ }
+
+ ActorClass SimpleActorClass2 {
+ Interface {
+ Port externalPort : PSimpleProtocol
+ }
+ }
+
+ ActorClass SimpleActorClass1 {
+ Interface {
+ conjugated Port externalPort : PSimpleProtocol
+ }
+ }
}
\ No newline at end of file |