CashDesk.secarc 564 Bytes
Newer Older
Paff's avatar
Paff 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
29
30
31
32
33
package secarc.seccds.fe;

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

component CashDesk {

	trustlevel +1;

	port 
		in Event newSale,
		in Image barcode,
		in String inIdentifier,
		out String outIdentifier,
		in Event endSale,
		in ProductData inProductData,
		in PaymentAck paymentAck,
		out ProductData outProductData;
		
	port 
		in Event cardPay,
		critical in CardData,
		critical in Integer pin,
		critical out BankData bdOut,
		in PaymentAck paIn,
		out Boolean validation;
	
	port
		out SaleInformation,
		out Bill;
		
}