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.Quantity
convertTo
(com.github.jqudt.Quantity quantity, com.github.jqudt.Unit unit) Converts a quantity from one unit to another.com.github.jqudt.Quantity
Converts 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.Quantity
newQuantity
(double quantity, com.github.jqudt.Unit unit) Creates a new jQUDTQuantity
for the given input.com.github.jqudt.Quantity
newQuantity
(double quantity, String unit) Creates a new jQUDTQuantity
for 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:
getManagerName
in interfacenet.bioclipse.managers.business.IBioclipseManager
-
newQuantity
public com.github.jqudt.Quantity newQuantity(double quantity, com.github.jqudt.Unit unit) Creates a new jQUDTQuantity
for the given input.- Parameters:
quantity
- the quantityunit
- theUnit
- Returns:
- a
Quantity
for 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
List
ofUnit
s 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
List
ofUnit
s 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
- theUnit
to convert to- Returns:
- a
List
ofUnit
s 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 jQUDTQuantity
for the given input.- Parameters:
quantity
- the quantityunit
- theUnit
- Returns:
- a
Quantity
for the given input - Throws:
net.bioclipse.core.business.BioclipseException
- when zero or more than one unit matches this symbol
-
doi
Description copied from interface:IBactingManager
Lists the DOIs of the articles associated to this manager.- Specified by:
doi
in interfaceIBactingManager
- Returns:
- a
List
of String with DOIs
-