Package org.lifstools.jgoslin.domain
Klasse ElementTable
- Alle implementierten Schnittstellen:
Serializable,Cloneable,Map<Element,Integer>
Accounting table for chemical element frequency. This is used to calculate
sum formulas and total masses for a given chemical element distribution, e.g.
in a lipid.
- Autor:
- Dominik Kopczynski, Nils Hoffmann
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidadd(ElementTable elements) Add all elements and counts to those in this element table.voidadd(ElementTable elements, int multiplier) Add all alements and counts to those in this element table, but use the count argument to multiply count values in the provided table.copy()Copy all entries in this element table.getChargedMass(int charge) Returns the total summed mass per number of elements, corrected for charge counts * electron rest mass.getMass()Returns the total summed mass per number of elements.Returns the individual total mass for the provided element.Returns the sum formula for all elements in this table.static ElementTableCreate a new element table from the provided entries.Von Klasse geerbte Methoden java.util.EnumMap
clear, clone, containsKey, containsValue, entrySet, equals, get, hashCode, keySet, put, putAll, remove, size, valuesVon Klasse geerbte Methoden java.util.AbstractMap
isEmpty, toStringVon Klasse geerbte Methoden java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Konstruktordetails
-
ElementTable
public ElementTable()Create a new element table.
-
-
Methodendetails
-
of
Create a new element table from the provided entries.- Parameter:
entries- the entries- Gibt zurück:
- a new element table.
-
add
Add all elements and counts to those in this element table.- Parameter:
elements- the table to add to this one.
-
add
Add all alements and counts to those in this element table, but use the count argument to multiply count values in the provided table.- Parameter:
elements-multiplier-
-
copy
Copy all entries in this element table. The copy will be completely independent of this instance.- Gibt zurück:
- a copy of this element table.
-
getSumFormula
Returns the sum formula for all elements in this table.- Gibt zurück:
- the sum formula. Returns an empty string if the table is empty.
-
getMass
Returns the individual total mass for the provided element.- Parameter:
element- the element to calculate the total mass for.- Gibt zurück:
- the total mass for the given element, or 0.
-
getMass
Returns the total summed mass per number of elements.- Gibt zurück:
- the total summed mass for this element table. Returns 0 if the table is empty.
-
getChargedMass
Returns the total summed mass per number of elements, corrected for charge counts * electron rest mass.- Parameter:
charge- the charge of the molecule- Gibt zurück:
- the total summed mass for this element table. Returns 0 if the table is empty.
-