Skip to content
Snippets Groups Projects
Commit b283d3c3 authored by Martin Stiemerling's avatar Martin Stiemerling :speech_balloon:
Browse files

Interface and function for QLE

parent c15cc8c3
No related branches found
No related tags found
1 merge request!9First working draft version
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment