Test.connect 1010 Bytes
Newer Older
René Schöne's avatar
René Schöne committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
receive A.Mqtt2MqttInput via mqtt using MarkMqttInput ;
receive A.Rest2RestInput via rest using MarkRestInput ;
receive A.Mqtt2RestInput via mqtt using MarkMqttInput ;
receive A.Rest2MqttInput via rest using MarkRestInput ;

send A.Mqtt2MqttOutput via mqtt using MarkMqttOutput ;
send A.Rest2RestOutput via rest using MarkRestOutput ;
send A.Mqtt2RestOutput via rest using MarkRestOutput ;
send A.Rest2MqttOutput via mqtt using MarkMqttOutput ;

A.Mqtt2MqttOutput canDependOn A.Mqtt2MqttInput as dependencyMqtt2Mqtt ;
A.Rest2RestOutput canDependOn A.Rest2RestInput as dependencyRest2Rest ;
A.Mqtt2RestOutput canDependOn A.Mqtt2RestInput as dependencyMqtt2Rest ;
A.Rest2MqttOutput canDependOn A.Rest2MqttInput as dependencyRest2Mqtt ;

MarkMqttInput maps String s to String {:
  return "FromMqtt" + s;
:}
MarkRestInput maps String s to String {:
  return "FromRest" + s;
:}

MarkMqttOutput maps String s to String {:
  return s + "ToMqtt";
:}
MarkRestOutput maps String s to String {:
  return s + "ToRest";
:}