Encog.App.Analyst.Script.Prop.ScriptProperties.SetProperty C# (CSharp) Method

SetProperty() public method

Set the property to a format.
public SetProperty ( String name, AnalystFileFormat format ) : void
name String The name of the property.
format AnalystFileFormat The value of the property.
return void
        public void SetProperty(String name,
                                AnalystFileFormat format)
        {
            _data[name] = ConvertStringConst.AnalystFileFormat2String(format);
        }

Same methods

ScriptProperties::SetProperty ( String name, AnalystGoal v ) : void
ScriptProperties::SetProperty ( String name, FileInfo f ) : void
ScriptProperties::SetProperty ( String name, String v ) : void
ScriptProperties::SetProperty ( String name, Uri url ) : void
ScriptProperties::SetProperty ( String name, bool b ) : void
ScriptProperties::SetProperty ( String name, double d ) : void
ScriptProperties::SetProperty ( String name, int i ) : void

Usage Example

 /// <summary>
 ///     Construct an analyst script.
 /// </summary>
 public AnalystScript()
 {
     _normalize = new AnalystNormalize(this);
     _segregate = new AnalystSegregate();
     _generated = new List<String>();
     _tasks = new Dictionary<String, AnalystTask>();
     _properties = new ScriptProperties();
     _properties.SetProperty(ScriptProperties.SetupConfigCSVFormat,
                             AnalystFileFormat.DecpntComma);
     _properties.SetProperty(
         ScriptProperties.SetupConfigMaxClassCount,
         DefaultMaxClass);
     _properties
         .SetProperty(ScriptProperties.SetupConfigAllowedClasses,
                      "integer,string");
 }