class CurrentSourceModels::DC

Overview

DC source. More…

#include <currentSourceModels.h>

class DC: public CurrentSourceModels::Base
{
public:
    // typedefs

    typedef Snippet::ValueBase<1> ParamValues;
    typedef Models::VarInitContainerBase<0> VarValues;
    typedef Models::VarInitContainerBase<0> PreVarValues;
    typedef Models::VarInitContainerBase<0> PostVarValues;

    // methods

    static const DC* getInstance();
    SET_INJECTION_CODE("$(injectCurrent, $(amp));\n");
    virtual StringVec getParamNames() const;
};

Inherited Members

public:
    // typedefs

    typedef std::vector<std::string> StringVec;
    typedef std::vector<EGP> EGPVec;
    typedef std::vector<ParamVal> ParamValVec;
    typedef std::vector<DerivedParam> DerivedParamVec;
    typedef std::vector<Var> VarVec;

    // structs

    struct DerivedParam;
    struct EGP;
    struct ParamVal;
    struct Var;

    // methods

    virtual ~Base();
    virtual StringVec getParamNames() const;
    virtual DerivedParamVec getDerivedParams() const;
    virtual VarVec getVars() const;
    virtual EGPVec getExtraGlobalParams() const;
    size_t getVarIndex(const std::string& varName) const;
    size_t getExtraGlobalParamIndex(const std::string& paramName) const;
    virtual std::string getInjectionCode() const;

Detailed Documentation

DC source.

It has a single parameter:

  • amp - amplitude of the current [nA]

Methods

virtual StringVec getParamNames() const

Gets names of of (independent) model parameters.