CashDeskSystem.secarc 896 Bytes
Newer Older
Paff's avatar
Paff committed
1
2
3
4
5
6
7
8
9
10
11
12
13
package secarc.seccds;

// import message types
import secarc.seccds.msg.*;
import java.awt.Image;

// import components
import secarc.seccds.fe.CashDesk;
import secarc.seccds.be.Bank;
import secarc.seccds.fe.Store;

component CashDeskSystem {

Paff's avatar
Paff committed
14
	trustlevel +0 "interne Angreifer";
Paff's avatar
Paff committed
15
16
17
18
19
20
21
22
23

	autoconnect encrypted port;
	autoinstantiate on;
	accesscontrol on;

	port 
		in Event newSale,
		in Image barcode,
		in Event endSale,
Paff's avatar
Paff committed
24
		out ProductData outProductData;
Paff's avatar
Paff committed
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
		
	port 
		in Event cardPay,
		in CardData,
		in Integer pin,
		out Boolean validation;
	
	component CashDesk cashDesk
		[encrypted bdOut -> bank.bankData; 
		saleInformation -> store.saleInformation];
	
	
	component Bank;
	
	component Store;
	
	connect encrypted bank.paymentAck -> cashDesk.paIn;

	connect cashDesk -> store;
	
Paff's avatar
Paff committed
45
	connect cashDesk.outProductData -> outProductData;
Paff's avatar
Paff committed
46
	
Paff's avatar
Paff committed
47
	connect store.outProductData -> cashDesk.inProductData;
Paff's avatar
Paff committed
48
49

}