Exemplo n.º 1
0
        public override bool Equals(object obj)
        {
            BasicPostProcessor other = (BasicPostProcessor)obj;

            if (other == null)
            {
                return(false);
            }

            return(true);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Produces an object from the passed parameters. This can only make
 /// BasicPreprocessors and BasicPostProcessors.
 /// </summary>
 /// <typeparam name="TObject">The type of object to produce.</typeparam>
 /// <param name="objectName">The name of the object to create.</param>
 /// <param name="buildParam">The parameters to use to create the object.</param>
 /// <returns>Returns the created object.</returns>
 public TObject CreateUserObject <TObject>(string objectName, Dictionary <string, string> buildParam)
 {
     if (objectName == "BasicPreProcessor")
     {
         ITrainingPreProcessor temp = new BasicPreProcessor();
         temp.MetaData = buildParam;
         return((TObject)temp);
     }
     else if (objectName == "BasicPostProcessor")
     {
         IPostProcessor temp = new BasicPostProcessor();
         temp.MetaData = buildParam;
         return((TObject)temp);
     }
     return(default(TObject));
 }