ScEpTIC.emulator.energy.energy_source package

Submodules

ScEpTIC.emulator.energy.energy_source.fixed_voltage_source module

class ScEpTIC.emulator.energy.energy_source.fixed_voltage_source.FixedVoltageSource(voltage, max_current=1.0)

Bases: EnergySourceModel

Model of a fixed-voltage energy source

get_current_sample_remaining_time()
Returns:

the remaining time of the current trace sample

get_voltage()
Returns:

energy source current voltage

get_voltage_intervals(t)

Returns the voltage of the energy harvester :param t: elapsed time :return: a list of (voltage, energy, elapsed_time)

set_max_current(max_current)

Sets the recharge voltage :param max_current: the maximum current supplied

set_voltage(voltage)

Sets the recharge voltage :param voltage: the voltage

ScEpTIC.emulator.energy.energy_source.synthetic_energy_source module

class ScEpTIC.emulator.energy.energy_source.synthetic_energy_source.SyntheticEnergySource(full_recharge_voltage)

Bases: EnergySourceModel

Model of a synthetic energy source that supply energy only when the device is powered off

get_current_sample_remaining_time()
Returns:

the remaining time of the current trace sample

get_voltage()
Returns:

energy source current voltage

get_voltage_intervals(t)

Returns the voltage of the energy harvester :param t: elapsed time :return: a list of (voltage, elapsed_time)

set_voltage(voltage)

Sets the recharge voltage :param voltage: the voltage

ScEpTIC.emulator.energy.energy_source.time_series_energy_source module

class ScEpTIC.emulator.energy.energy_source.time_series_energy_source.TimeSeriesEnergySource(name)

Bases: EnergySourceModel

get_current_sample_remaining_time()
Returns:

the remaining time of the current trace sample

get_voltage_intervals(t)

Returns the voltage trace of the energy source :param t: elapsed time :return: a list of (voltage, time)

load_resistance_unset()
set_load_resistance(r)

Sets the load resistance if was not set :r: load resistance

Module contents

class ScEpTIC.emulator.energy.energy_source.EnergySourceModel

Bases: VoltageSource

Model of an energy source

TIME_MULTIPLIER = 1000000000
get_current_sample_remaining_time()
Returns:

the remaining time of the current trace sample

get_voltage()
Returns:

energy source current voltage

get_voltage_intervals(t)

Returns voltage intervals of the energy source :param t: elapsed time :return: a list of (voltage, energy, elapsed_time)

load_resistance_unset()