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

Function to check power status

parent 80e9d9ca
Branches
No related tags found
1 merge request!9First working draft version
......@@ -238,6 +238,10 @@ func (qlemuprng *QuantumlayerEmuPRNG) GetKeyBatchLocal() (QuantumLayerBulkKey, e
return qlemuprng.myNumbers.GetBulk()
}
func (qlemuprng *QuantumlayerEmuPRNG) GetStatus() (poweredOn bool) {
return qlemuprng.poweron
}
type NumberStore struct {
mu sync.Mutex
maxBytes int
......
......@@ -14,6 +14,7 @@ type QuantumLayer interface {
Configure(...string) // configure the interface, e.g., used IP/Port config if emulated
PowerOn() // switch on the quantum layer element
PowerOff() // switch off the quantum layer element
GetStatus() (poweredOn bool) // returns true if quantum layer element is powered on
AddPeer() // Adds a Quantum Layer Peer to the peer list
RemovePeer() // Remmoves a Quantum Layer Peer to the peer list
GetLocalQLPort() // Returns the information about the local quantum layer IP and port
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment