# Path: concert/quantities.py

# 
# Path: concert/devices/storagerings/base.py
# class StorageRing(Device):
#     def __init__(self):
#     async def _get_current(self):
#     async def _get_energy(self):
#     async def _get_lifetime(self):


import time
import threading
from concert.quantities import q
from concert.devices.storagerings import base
"""
Dummy ring to test asychronous updates.
"""


class StorageRing(base.StorageRing):

    """A storage ring dummy."""

    def __init__(self):
        super(StorageRing, self).__init__()
        self._lifetime = 10 * q.hour
        self._current = 100 * q.mA
        self._energy = 5 * q.MeV

# Path: concert/quantities.py

# 
# Path: concert/devices/storagerings/base.py
# class StorageRing(Device):
#     def __init__(self):
#     async def _get_current(self):
#     async def _get_energy(self):
#     async def _get_lifetime(self):


# Path: concert/devices/storagerings/dummy.py
import time
import threading
from concert.quantities import q
from concert.devices.storagerings import base

"""
Dummy ring to test asychronous updates.
"""


class StorageRing(base.StorageRing):

    """A storage ring dummy."""

    def __init__(self):
        super(StorageRing, self).__init__()
        self._lifetime = 10 * q.hour
        self._current = 100 * q.mA
        self._energy = 5 * q.MeV

        self._current_decay = 0.05 * q.mA / q.hour