/// <summary> /// Creates an initialized instance. /// </summary> /// <param name="elem">A xml element containing the configuration data.</param> public AFAnalogElliotSettings(XElement elem) { //Validation XElement activationSettingsElem = Validate(elem, XsdTypeName); //Parsing Slope = URandomValueSettings.LoadOrCreate(activationSettingsElem, "slope", TypicalSlope); return; }
/// <summary> /// Creates an initialized instance. /// </summary> /// <param name="elem">A xml element containing the configuration data.</param> public AFAnalogSoftExponentialSettings(XElement elem) { //Validation XElement activationSettingsElem = Validate(elem, XsdTypeName); //Parsing Alpha = URandomValueSettings.LoadOrCreate(activationSettingsElem, "alpha", TypicalAlpha); return; }
/// <summary> /// Creates an initialized instance. /// </summary> /// <param name="elem">A xml element containing the configuration data.</param> public AFSpikingSimpleIFSettings(XElement elem) { //Validation XElement activationSettingsElem = Validate(elem, XsdTypeName); //Parsing Resistance = URandomValueSettings.LoadOrCreate(activationSettingsElem, "resistance", TypicalResistance); DecayRate = URandomValueSettings.LoadOrCreate(activationSettingsElem, "decayRate", TypicalDecayRate); ResetV = URandomValueSettings.LoadOrCreate(activationSettingsElem, "resetV", TypicalResetV); FiringThresholdV = URandomValueSettings.LoadOrCreate(activationSettingsElem, "firingThresholdV", TypicalFiringThresholdV); RefractoryPeriods = int.Parse(activationSettingsElem.Attribute("refractoryPeriods").Value, CultureInfo.InvariantCulture); Check(); return; }
/// <summary> /// Creates an initialized instance. /// </summary> /// <param name="elem">A xml element containing the configuration data.</param> public AFSpikingLeakyIFSettings(XElement elem) { //Validation XElement activationSettingsElem = Validate(elem, XsdTypeName); //Parsing TimeScale = URandomValueSettings.LoadOrCreate(activationSettingsElem, "timeScale", TypicalTimeScale); Resistance = URandomValueSettings.LoadOrCreate(activationSettingsElem, "resistance", TypicalResistance); RestV = RandomValueSettings.LoadOrCreate(activationSettingsElem, "restV", TypicalRestV); ResetV = RandomValueSettings.LoadOrCreate(activationSettingsElem, "resetV", TypicalResetV); FiringThresholdV = RandomValueSettings.LoadOrCreate(activationSettingsElem, "firingThresholdV", TypicalFiringThresholdV); RefractoryPeriods = int.Parse(activationSettingsElem.Attribute("refractoryPeriods").Value, CultureInfo.InvariantCulture); SolverMethod = (ODENumSolver.Method)Enum.Parse(typeof(ODENumSolver.Method), activationSettingsElem.Attribute("solverMethod").Value, true); SolverCompSteps = int.Parse(activationSettingsElem.Attribute("solverCompSteps").Value, CultureInfo.InvariantCulture); StimuliDuration = double.Parse(activationSettingsElem.Attribute("stimuliDuration").Value, CultureInfo.InvariantCulture); Check(); return; }
/// <summary> /// Creates an initialized instance. /// </summary> /// <param name="elem">A xml element containing the configuration data.</param> public AFSpikingAdExpIFSettings(XElement elem) { //Validation XElement activationSettingsElem = Validate(elem, XsdTypeName); //Parsing TimeScale = URandomValueSettings.LoadOrCreate(activationSettingsElem, "timeScale", TypicalTimeScale); Resistance = URandomValueSettings.LoadOrCreate(activationSettingsElem, "resistance", TypicalResistance); RestV = RandomValueSettings.LoadOrCreate(activationSettingsElem, "restV", TypicalRestV); ResetV = RandomValueSettings.LoadOrCreate(activationSettingsElem, "resetV", TypicalResetV); RheobaseV = RandomValueSettings.LoadOrCreate(activationSettingsElem, "rheobaseV", TypicalRheobaseV); FiringThresholdV = RandomValueSettings.LoadOrCreate(activationSettingsElem, "firingThresholdV", TypicalFiringThresholdV); SharpnessDeltaT = URandomValueSettings.LoadOrCreate(activationSettingsElem, "sharpnessDeltaT", TypicalSharpnessDeltaT); AdaptationVoltageCoupling = URandomValueSettings.LoadOrCreate(activationSettingsElem, "adaptationVoltageCoupling", TypicalAdaptationVoltageCoupling); AdaptationTimeConstant = URandomValueSettings.LoadOrCreate(activationSettingsElem, "adaptationTimeConstant", TypicalAdaptationTimeConstant); AdaptationSpikeTriggeredIncrement = URandomValueSettings.LoadOrCreate(activationSettingsElem, "adaptationSpikeTriggeredIncrement", TypicalAdaptationSpikeTriggeredIncrement); SolverMethod = (ODENumSolver.Method)Enum.Parse(typeof(ODENumSolver.Method), activationSettingsElem.Attribute("solverMethod").Value, true); SolverCompSteps = int.Parse(activationSettingsElem.Attribute("solverCompSteps").Value, CultureInfo.InvariantCulture); StimuliDuration = double.Parse(activationSettingsElem.Attribute("stimuliDuration").Value, CultureInfo.InvariantCulture); Check(); return; }