Tabnine Logo
Parameter
Code IndexAdd Tabnine to your IDE (free)

How to use
Parameter
in
psidev.psi.mi.jami.model

Best Java code snippets using psidev.psi.mi.jami.model.Parameter (Showing top 8 results out of 315)

origin: psidev.psi.mi.jami/jami-core

CvTerm type1 = parameter1.getType();
CvTerm type2 = parameter2.getType();
CvTerm unit1 = parameter1.getUnit();
CvTerm unit2 = parameter2.getUnit();
ParameterValue value1 = parameter1.getValue();
ParameterValue value2 = parameter2.getValue();
BigDecimal uncertainty1 = parameter1.getUncertainty();
BigDecimal uncertainty2 = parameter2.getUncertainty();
if (uncertainty1 == null && uncertainty2 == null){
  return EQUAL;
origin: psidev.psi.mi.jami/jami-core

public static String getParameterValueAsString(Parameter param){
  if (param == null){
    return null;
  }
  return param.getValue().toString() + (param.getUncertainty() != null ? " ~" + param.getUncertainty().toString() : "");
}
origin: psidev.psi.mi.jami/jami-mitab

public void writeParameter(Parameter parameter) throws IOException {
  if (parameter != null){
    // first parameter type
    escapeAndWriteString(parameter.getType().getShortName());
    getWriter().write(MitabUtils.XREF_SEPARATOR);
    // then parameter value
    escapeAndWriteString(ParameterUtils.getParameterValueAsString(parameter));
    // then write unit
    if (parameter.getUnit() != null){
      getWriter().write("(");
      escapeAndWriteString(parameter.getUnit().getShortName());
      getWriter().write(")");
    }
  }
}
origin: psidev.psi.mi.jami/jami-interactionviewer-json

  public void write(Parameter object) throws IOException {
    MIJsonUtils.writeStartObject(writer);
    MIJsonUtils.writeProperty("type", JSONValue.escape(object.getType().getShortName()), writer);
    MIJsonUtils.writeSeparator(writer);
    MIJsonUtils.writeProperty("value", JSONValue.escape(ParameterUtils.getParameterValueAsString(object)), writer);
    if (object.getUnit() != null){
      MIJsonUtils.writeSeparator(writer);
      MIJsonUtils.writeProperty("unit", JSONValue.escape(object.getUnit().getShortName()), writer);
    }
    MIJsonUtils.writeEndObject(writer);
  }
}
origin: psidev.psi.mi.jami/jami-core

public DefaultParameter(CvTerm type, String value) throws IllegalParameterException {
  if (type == null){
    throw new IllegalArgumentException("The parameter type is required and cannot be null");
  }
  this.type = type;
  Parameter param = ParameterUtils.createParameterFromString(type, value);
  this.value = param.getValue();
  this.uncertainty = param.getUncertainty();
}
origin: psidev.psi.mi.jami/jami-core

CvTerm type1 = parameter1.getType();
CvTerm type2 = parameter2.getType();
CvTerm unit1 = parameter1.getUnit();
CvTerm unit2 = parameter2.getUnit();
ParameterValue value1 = parameter1.getValue();
ParameterValue value2 = parameter2.getValue();
BigDecimal uncertainty1 = parameter1.getUncertainty();
BigDecimal uncertainty2 = parameter2.getUncertainty();
if (uncertainty1 == null && uncertainty2 == null){
  return true;
origin: psidev.psi.mi/psimi-schema-validator

final OntologyAccess access = ontologyManager.getOntologyAccess("MI");
CvTerm type = parameter.getType();
CvTerm unit = parameter.getUnit();
origin: psidev.psi.mi.jami/jami-core

  /**
   *
   * @param param
   * @return the hashcode consistent with the equals method for this comparator
   */
  public static int hashCode(Parameter param){
    if (unambiguousParameterComparator == null){
      unambiguousParameterComparator = new UnambiguousParameterComparator();
    }

    if (param == null){
      return 0;
    }

    int hashcode = 31;
    CvTerm type = param.getType();
    hashcode = 31*hashcode + UnambiguousCvTermComparator.hashCode(type);

    CvTerm unit = param.getUnit();
    hashcode = 31*hashcode + UnambiguousCvTermComparator.hashCode(unit);

    ParameterValue value = param.getValue();
    hashcode = 31*hashcode + ParameterValueComparator.hashCode(value);

    BigDecimal uncertainty = param.getUncertainty();
    hashcode = 31*hashcode + (uncertainty != null ? uncertainty.hashCode() : 0);

    return hashcode;
  }
}
psidev.psi.mi.jami.modelParameter

Javadoc

A numeric parameter e.g. for a kinetic value

Most used methods

  • getType
    The parameter type is a controlled vocabulary term and it cannot be null. Ex: dissociation constant
  • getUnit
    Unit of the parameter is a controlled vocabulary term. It can be null Ex: KiloDalton
  • getUncertainty
    The uncertainty of the parameter. By default is null
  • getValue
    The parameter value cannot be null

Popular in Java

  • Making http post requests using okhttp
  • getSystemService (Context)
  • getApplicationContext (Context)
  • setContentView (Activity)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Path (java.nio.file)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now