Package net.bioclipse.managers
Class QUDTManager
java.lang.Object
net.bioclipse.managers.QUDTManager
- All Implemented Interfaces:
IBactingManager,net.bioclipse.managers.business.IBioclipseManager
Bioclipse manager providing unit conversion functionality.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.github.jqudt.QuantityconvertTo(com.github.jqudt.Quantity quantity, com.github.jqudt.Unit unit) Converts a quantity from one unit to another.com.github.jqudt.QuantityConverts a quantity from one unit to another.doi()Lists the DOIs of the articles associated to this manager.List<com.github.jqudt.Unit>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.QuantitynewQuantity(double quantity, com.github.jqudt.Unit unit) Creates a new jQUDTQuantityfor the given input.com.github.jqudt.QuantitynewQuantity(double quantity, String unit) Creates a new jQUDTQuantityfor the given input.
-
Constructor Details
-
QUDTManager
Creates a newQUDTManager.- Parameters:
workspaceRoot- location of the workspace, e.g. "."
-
-
Method Details
-
getManagerName
Gives a short one word name of the manager used as variable name when scripting.- Specified by:
getManagerNamein interfacenet.bioclipse.managers.business.IBioclipseManager
-
newQuantity
public com.github.jqudt.Quantity newQuantity(double quantity, com.github.jqudt.Unit unit) Creates a new jQUDTQuantityfor the given input.- Parameters:
quantity- the quantityunit- theUnit- Returns:
- a
Quantityfor the given input
-
findUnits
Returns a list of zero or more units matching the given unit.- Parameters:
symbol- the symbol to find the units for- Returns:
- a
ListofUnits 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 convertsymbol- the symbol to find the units for- Returns:
- a
ListofUnits 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 convertunit- theUnitto convert to- Returns:
- a
ListofUnits 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 jQUDTQuantityfor the given input.- Parameters:
quantity- the quantityunit- theUnit- Returns:
- a
Quantityfor the given input - Throws:
net.bioclipse.core.business.BioclipseException- when zero or more than one unit matches this symbol
-
doi
Description copied from interface:IBactingManagerLists the DOIs of the articles associated to this manager.- Specified by:
doiin interfaceIBactingManager- Returns:
- a
Listof String with DOIs
-