ESBO-ETC/esbo_etc/classes/IRadiant.py

33 lines
824 B
Python
Raw Normal View History

2020-04-16 09:35:24 +02:00
from abc import ABC, abstractmethod
from .SpectralQty import SpectralQty
class IRadiant(ABC):
"""
Interface for getting the signal and the background radiation of a emitting, reflecting or transmitting component
in the beam.
2020-04-16 09:35:24 +02:00
"""
@abstractmethod
def calcSignal(self) -> SpectralQty:
"""
Calculate the signal coming from the component
Returns
-------
signal : SpectralQty
The emitted, reflected or transmitted signal
"""
pass
@abstractmethod
def calcBackground(self) -> SpectralQty:
2020-04-16 09:35:24 +02:00
"""
Calculate the background radiation coming from the component
2020-04-16 09:35:24 +02:00
Returns
-------
signal : SpectralQty
The emitted, reflected or transmitted background radiation
2020-04-16 09:35:24 +02:00
"""
pass