Codota Logo
Parameter.getCargo
Code IndexAdd Codota to your IDE (free)

How to use
getCargo
method
in
org.qsardb.model.Parameter

Best Java code snippets using org.qsardb.model.Parameter.getCargo (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: org.qsardb.conversion/table

private Map<String, String> loadValues(Parameter<?,?> p) {
  try {
    return p.getCargo(ValuesCargo.class).loadStringMap();
  } catch (IOException e) {
    return new HashMap<String, String>();
  }
}
origin: org.qsardb.conversion/table

@Override
public void beginMapping() throws IOException {
  C parameter = getParameter();
  this.references = new LinkedHashMap<String, String>();
  if(parameter.hasCargo(ReferencesCargo.class)){
    ReferencesCargo cargo = parameter.getCargo(ReferencesCargo.class);
    this.references.putAll(cargo.loadReferences());
  }
}
origin: org.qsardb/evaluation

static
public DecimalFormat getFormat(Parameter<?, ?> parameter){
  if(parameter.hasCargo(ValuesCargo.class)){
    ValuesCargo valuesCargo = parameter.getCargo(ValuesCargo.class);
    try {
      Map<String, BigDecimal> values = parseValues(valuesCargo.loadStringMap());
      ScaleFrequencyMap map = ScaleFrequencyMap.sample(values.values());
      int minCount = Math.max(3, values.size() / 10);
      return new DecimalFormat(map.getPattern(minCount), new DecimalFormatSymbols(Locale.US));
    } catch(Exception e){
      logger.log(Level.WARNING, "Parameter \'" + parameter.getId() + "\' does not specify decimal format", e);
    }
  }
  return null;
}
org.qsardb.modelParametergetCargo

Popular methods of Parameter

  • getId
  • hasCargo
  • getName
  • getOrAddCargo

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Menu (java.awt)
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now