Skip to content

Commit

Permalink
Create exotic_energy_source_adapter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jul 16, 2024
1 parent 9064018 commit 586fce6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/adapters/exotic_energy_source_adapter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import exotic_energy

class ExoticEnergySourceAdapter(AdapterBase):
def __init__(self, exotic_energy_source):
self.exotic_energy_source = exotic_energy_source

def connect(self):
self.exotic_energy_source.activate_exotic_energy_source()

def disconnect(self):
self.exotic_energy_source.deactivate_exotic_energy_source()

def get_energy_level(self):
return self.exotic_energy_source.get_exotic_energy_level()

0 comments on commit 586fce6

Please sign in to comment.