diff options
| author | J08nY | 2020-02-12 21:00:20 +0100 |
|---|---|---|
| committer | J08nY | 2020-02-12 21:00:20 +0100 |
| commit | 85afbe7548d59d5ca5a8d17b32926f99235f5211 (patch) | |
| tree | 5645730f38ff87bcbdfe76539dee2e7961df4901 /pyecsca/sca/target/base.py | |
| parent | 11bd56b296f1620932f098a6037f0807e7f6616f (diff) | |
| download | pyecsca-85afbe7548d59d5ca5a8d17b32926f99235f5211.tar.gz pyecsca-85afbe7548d59d5ca5a8d17b32926f99235f5211.tar.zst pyecsca-85afbe7548d59d5ca5a8d17b32926f99235f5211.zip | |
Add the concept of a configuration. Add enumeration of configurations.
Diffstat (limited to 'pyecsca/sca/target/base.py')
| -rw-r--r-- | pyecsca/sca/target/base.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pyecsca/sca/target/base.py b/pyecsca/sca/target/base.py index ed51c02..cc0436c 100644 --- a/pyecsca/sca/target/base.py +++ b/pyecsca/sca/target/base.py @@ -1,14 +1,18 @@ +from abc import ABC, abstractmethod + from public import public @public -class Target(object): +class Target(ABC): """A target.""" + @abstractmethod def connect(self): """Connect to the target device.""" - raise NotImplementedError + ... + @abstractmethod def disconnect(self): """Disconnect from the target device.""" - raise NotImplementedError + ... |
