Package org.encog.workbench

Examples of org.encog.workbench.WorkBenchError


      NEATNetwork neat = (NEATNetwork)method;
      g = buildGraph(neat);
    }
   
    if( g==null ) {
      throw new WorkBenchError("Can't visualize network: " + method.getClass().getSimpleName());
    }

    Transformer<DrawnNeuron, Point2D> staticTranformer = new Transformer<DrawnNeuron, Point2D>() {

      public Point2D transform(DrawnNeuron n) {
View Full Code Here


    DataField[] fields = this.analyst.getScript().getFields();
   
    this.targetField = this.analyst.getScript().findDataField(target);
   
    if( targetField==null ) {
      throw new WorkBenchError("Can't find target field: " + target);
    }
    this.targetIndex = this.analyst.getScript().findDataFieldIndex(targetField);
   
    // determine series names
    if( targetField.isClass() ) {
View Full Code Here

 
  public ThermalGridTab(ProjectEGFile file) {
    super(file);
   
    if( !(file.getObject() instanceof ThermalNetwork) ) {
      throw new WorkBenchError("Can't view network as thermal.");
    }
   
    setLayout(new BorderLayout());
    this.model = new ThermalModel((ThermalNetwork) file.getObject());
    this.table = new JTable(this.model);
View Full Code Here

        Object fieldObj = field.get(obj);
        if( fieldObj instanceof Collection )
          return true;
      }
    } catch (IllegalArgumentException e) {
      throw new WorkBenchError(e);
    } catch (IllegalAccessException e) {
      throw new WorkBenchError(e);
    } finally {
    }
    return false;
  }
View Full Code Here

      else
        collection.remove(object);

      generateTree();
    } catch (SecurityException e) {
      throw new WorkBenchError(e);
    } catch (IllegalArgumentException e) {
      throw new WorkBenchError(e);
    } catch (NoSuchFieldException e) {
      throw new WorkBenchError(e);
    } catch (IllegalAccessException e) {
      throw new WorkBenchError(e);
    } finally {
    }
  }
View Full Code Here

        Object item = ((Class) types[0]).newInstance();
        ((Collection) fieldObject).add(item);
        generateTree();
      }
    } catch (SecurityException e) {
      throw new WorkBenchError(e);
    } catch (NoSuchFieldException e) {
      throw new WorkBenchError(e);
    } catch (IllegalAccessException e) {
      throw new WorkBenchError(e);
    } catch (InstantiationException e) {
      throw new WorkBenchError(e);
    }
  }
View Full Code Here

      tree.invalidate();
      TreePath path = new TreePath(this.root);     
      tree.setSelectionPath(path);
      pack();
    } catch (IllegalAccessException e) {
      throw new WorkBenchError(e);
    }
  }
View Full Code Here

      StructureTab tab = new StructureTab(
          ((MLMethod)this.method));
      EncogWorkBench.getInstance().getMainWindow().getTabManager()
          .openModalTab(tab, "Network Structure");
    } else {
      throw new WorkBenchError("No analysis available for: "
          + this.method.getClass().getSimpleName());
    }

  }
View Full Code Here

        chart.draw(g2, area);
        g2.dispose();
        // step 5
        document.close();
      } catch(DocumentException ex) {
        throw new WorkBenchError(ex);
      }
       catch(IOException ex) {
         throw new WorkBenchError(ex);
       }

    }
View Full Code Here

      } else {
        try {
          Object value = data.getField(row).get(this.data.getData());
          return value;
        } catch (IllegalArgumentException e) {
          throw new WorkBenchError(e);
        } catch (IllegalAccessException e) {
          throw new WorkBenchError(e);
        }
      }

    }
  }
View Full Code Here

TOP

Related Classes of org.encog.workbench.WorkBenchError

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.