Package devplugin

Examples of devplugin.ImportanceValue


    }

    @Override
    protected ImportanceValue doGetImportanceValueForProgram(Program p) {
      // TODO Auto-generated method stub
      return new ImportanceValue((byte)1,Program.DEFAULT_PROGRAM_IMPORTANCE);
    }
View Full Code Here


      int addValue = 0;

      PluginProxy[] plugins = PluginProxyManager.getInstance().getActivatedPlugins();

      for(PluginProxy plugin : plugins) {
        ImportanceValue value = plugin.getImportanceValueForProgram(program);

        if(value.getWeight() > 0 && value.getTotalImportance() >= Program.MIN_MARK_PRIORITY) {
          count += value.getWeight();
          addValue += value.getTotalImportance();
        }
      }

      if(count > 0) {
        return (byte)Math.max(addValue/count, Program.MIN_MARK_PRIORITY);
View Full Code Here

          importance += test;
        }
      }

      if(count > 0) {
        return new ImportanceValue(count,importance);
      }
    }

    return new ImportanceValue((byte)1,Program.DEFAULT_PROGRAM_IMPORTANCE);
  }
View Full Code Here

      return doGetImportanceValueForProgram(p);
    } catch (Throwable exc) {
      handlePluginException(exc);
    }

    return new ImportanceValue((byte)1,Program.MAX_PROGRAM_IMPORTANCE);
  }
View Full Code Here

TOP

Related Classes of devplugin.ImportanceValue

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.