This commit is contained in:
NikolajDanger
2023-01-13 14:30:29 +01:00
parent 4afc1d17df
commit 0844b209b1
287 changed files with 28523 additions and 0 deletions

28
Assignment-3/shipper.ol Normal file
View File

@ -0,0 +1,28 @@
from SellerShipperServiceInterfaceModule import ShipperInterface
from BuyerServiceInterfaceModule import BuyerShipperInterface
include "console.iol"
service ShipperService {
execution { concurrent }
outputPort Buyer {
location: "socket://localhost:9003"
protocol: http { format = "json" }
interfaces: BuyerShipperInterface
}
inputPort SellerShipper {
Location: "socket://localhost:9006"
Protocol: http { format = "json" }
Interfaces: ShipperInterface
}
main {
[order(product)] {
println@Console( "Order placed" )()
details@Buyer("Invoice for '" + product + "'")
}
}
}