From b283d3c32ec81323632c19309139930e02bde22c Mon Sep 17 00:00:00 2001
From: Martin Stiemerling <martin.stiemerling@h-da.de>
Date: Mon, 3 Jul 2023 11:46:13 +0000
Subject: [PATCH] Interface and function for QLE

---
 kms/kms.go | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/kms/kms.go b/kms/kms.go
index de873d8..f740833 100644
--- a/kms/kms.go
+++ b/kms/kms.go
@@ -41,6 +41,11 @@ type EKMS struct {
 
 // Will keep information about the quantum elements that this EKMS is talking to
 // This actually constitutes a quantum element with only a single link
+
+type QuantumElementInterface interface {
+	GetQlID() qlElementId
+}
+
 type QuantumElement struct {
 	qlID               qlElementId
 	QuantumElementLink *quantumlayer.QuantumlayerEmuPRNG // contains information about the quantum links
@@ -164,3 +169,7 @@ func (kms *EKMS) AddPeer(kmsPeerSocket string, servingQLE *QuantumElement) {
 func (kms *EKMS) RemovePeer(kmsPeerSocket string) {
 
 }
+
+func (qle *QuantumElement) GetQlID() (myId qlElementId) {
+	return qle.qlID
+}
-- 
GitLab