Class QUDTManager

java.lang.Object
net.bioclipse.managers.QUDTManager
All Implemented Interfaces:
IBactingManager, net.bioclipse.managers.business.IBioclipseManager

public class QUDTManager extends Object implements IBactingManager
Bioclipse manager providing unit conversion functionality.
  • Constructor Summary

    Constructors
    Constructor
    Description
    QUDTManager(String workspaceRoot)
    Creates a new QUDTManager.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.github.jqudt.Quantity
    convertTo(com.github.jqudt.Quantity quantity, com.github.jqudt.Unit unit)
    Converts a quantity from one unit to another.
    com.github.jqudt.Quantity
    convertTo(com.github.jqudt.Quantity quantity, String symbol)
    Converts a quantity from one unit to another.
    doi()
    Lists the DOIs of the articles associated to this manager.
    List<com.github.jqudt.Unit>
    findUnits(String symbol)
    Returns a list of zero or more units matching the given unit.
    Gives a short one word name of the manager used as variable name when scripting.
    com.github.jqudt.Quantity
    newQuantity(double quantity, com.github.jqudt.Unit unit)
    Creates a new jQUDT Quantity for the given input.
    com.github.jqudt.Quantity
    newQuantity(double quantity, String unit)
    Creates a new jQUDT Quantity for the given input.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • QUDTManager

      public QUDTManager(String workspaceRoot)
      Creates a new QUDTManager.
      Parameters:
      workspaceRoot - location of the workspace, e.g. "."
  • Method Details

    • getManagerName

      public String getManagerName()
      Gives a short one word name of the manager used as variable name when scripting.
      Specified by:
      getManagerName in interface net.bioclipse.managers.business.IBioclipseManager
    • newQuantity

      public com.github.jqudt.Quantity newQuantity(double quantity, com.github.jqudt.Unit unit)
      Creates a new jQUDT Quantity for the given input.
      Parameters:
      quantity - the quantity
      unit - the Unit
      Returns:
      a Quantity for the given input
    • findUnits

      public List<com.github.jqudt.Unit> findUnits(String symbol)
      Returns a list of zero or more units matching the given unit.
      Parameters:
      symbol - the symbol to find the units for
      Returns:
      a List of Units matching the given symbol
    • convertTo

      public com.github.jqudt.Quantity convertTo(com.github.jqudt.Quantity quantity, String symbol) throws net.bioclipse.core.business.BioclipseException
      Converts a quantity from one unit to another.
      Parameters:
      quantity - the quantity to convert
      symbol - the symbol to find the units for
      Returns:
      a List of Units matching the given symbol
      Throws:
      net.bioclipse.core.business.BioclipseException - when zero or more than one unit matches this symbol
    • convertTo

      public com.github.jqudt.Quantity convertTo(com.github.jqudt.Quantity quantity, com.github.jqudt.Unit unit) throws net.bioclipse.core.business.BioclipseException
      Converts a quantity from one unit to another.
      Parameters:
      quantity - the quantity to convert
      unit - the Unit to convert to
      Returns:
      a List of Units matching the given symbol
      Throws:
      net.bioclipse.core.business.BioclipseException - when zero or more than one unit matches this symbol
    • newQuantity

      public com.github.jqudt.Quantity newQuantity(double quantity, String unit) throws net.bioclipse.core.business.BioclipseException
      Creates a new jQUDT Quantity for the given input.
      Parameters:
      quantity - the quantity
      unit - the Unit
      Returns:
      a Quantity for the given input
      Throws:
      net.bioclipse.core.business.BioclipseException - when zero or more than one unit matches this symbol
    • doi

      public List<String> doi()
      Description copied from interface: IBactingManager
      Lists the DOIs of the articles associated to this manager.
      Specified by:
      doi in interface IBactingManager
      Returns:
      a List of String with DOIs