Examples of IFeatureType


Examples of org.jamesii.perfdb.entities.IFeatureType

      factoryMapping.put(featureType.getFeatureExtractorFactory(), featureType);
    }

    Map<String, Serializable> allFeatures = new HashMap<>();
    for (FeatureExtractorFactory suitableFactory : suitableFactories) {
      IFeatureType featureType = factoryMapping.get(suitableFactory.getClass());

      @SuppressWarnings("unchecked")
      // Should be guaranteed by the factories, checking for problem
      // representation in the parameter block
      Map<String, Serializable> extractedFeatures = ((IFeatureExtractor<P>) suitableFactory
View Full Code Here

Examples of org.jamesii.perfdb.entities.IFeatureType

    List<FeatureExtractorFactory> exFactories =
        SimSystem.getRegistry().getFactories(FeatureExtractorFactory.class);

    for (FeatureExtractorFactory exFactory : exFactories) {
      IFeatureType feat = null;

      try {
        feat = perfDB.getFeatureForFactory(exFactory.getClass());
      } catch (Exception ex) {
        SimSystem.report(Level.SEVERE,
View Full Code Here

Examples of org.jamesii.perfdb.entities.IFeatureType

   */
  public static void extractFeatures(IApplication app,
      IPerformanceDatabase perfDB, Map<String, IFeatureType> featureMap,
      List<FeatureExtractorFactory> feFactories) {
    for (FeatureExtractorFactory feFactory : feFactories) {
      IFeatureType availableFeature =
          featureMap.get(feFactory.getClass().getCanonicalName());
      try {
        @SuppressWarnings("unchecked")
        IFeatureExtractor<ParameterBlock> extractor =
            (IFeatureExtractor<ParameterBlock>) feFactory.create(null, SimSystem.getRegistry().createContext());
View Full Code Here

Examples of org.jamesii.perfdb.entities.IFeatureType

  }

  @Override
  public IFeatureType newFeatureType(String typeName, String typeDesc,
      Class<? extends FeatureExtractorFactory> factoryClass) {
    IFeatureType feat = getFeatureForFactory(factoryClass);
    if (feat != null) {
      return feat;
    }
    feat = new FeatureType(typeName, typeDesc, factoryClass);
    save(feat);
View Full Code Here

Examples of org.jamesii.perfdb.entities.IFeatureType

   * Tests feature management.
   */
  public void features() throws Exception {
    perfDB.newFeatureType("New Feat.", "without desc",
        FeatureExtractorFactory.class);
    IFeatureType featType =
        perfDB.newFeatureType("New Feat.", "without desc",
            FeatureExtractorFactory.class);
    assertTrue(
        "At least the new feature type should be registered in the database.",
        perfDB.getAllFeatureTypes().size() >= 1);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.