dss.UserModels.bases

Contents

dss.UserModels.bases#

Module Contents#

Classes#

CommonBase

DynamicsBase

GenUserModelBase

SaveRestoreMixin

API#

class dss.UserModels.bases.CommonBase(callbacks, populate=None)#

Bases: object

__init__(callbacks, populate=None)#
add_input(name, value=0.0)#
add_inputs(*args)#
edit(edit_str, max_len)#
classmethod extract_names()#
set_input_param(i, value)#
update()#
class dss.UserModels.bases.DynamicsBase(dyn, callbacks, populate=None)#

Bases: dss.UserModels.bases.CommonBase

__init__(dyn, callbacks, populate=None)#
add_input(name, value=0.0)#
add_inputs(*args)#
add_output(name, init_value=0.0)#
add_outputs(*args)#
add_state_var(name, init_value=0.0)#
add_state_vars(*args)#
abstract calc(V, I)#
copy_state()#
edit(edit_str, max_len)#
classmethod extract_names()#
get_all_outputs(var_vector)#
get_num_outputs()#
get_output(i)#
get_output_name(i)#
init_dstate()#
abstract init_state_vars(V, I)#
integrate()#
saturate()#
set_input_param(i, value)#
set_var_limits(name, min=None, max=None)#
update()#
class dss.UserModels.bases.GenUserModelBase(gen, dyn, callbacks, populate=None)#

Bases: dss.UserModels.bases.DynamicsBase, dss.UserModels.bases.SaveRestoreMixin

__init__(gen, dyn, callbacks, populate=None)#
add_input(name, value=0.0)#
add_inputs(*args)#
add_output(name, init_value=0.0)#
add_outputs(*args)#
add_state_var(name, init_value=0.0)#
add_state_vars(*args)#
abstract calc(V, I)#
copy_state()#
edit(edit_str, max_len)#
classmethod extract_names()#
get_all_outputs(var_vector)#
get_num_outputs()#
get_output(i)#
get_output_name(i)#
init_dstate()#
abstract init_state_vars(V, I)#
integrate()#
restore()#
saturate()#
save()#
set_input_param(i, value)#
set_var_limits(name, min=None, max=None)#
update()#
class dss.UserModels.bases.SaveRestoreMixin#

Bases: object

restore()#
save()#