Package org.lifstools.jgoslin.domain
Klasse FunctionalGroup
java.lang.Object
org.lifstools.jgoslin.domain.FunctionalGroup
- Bekannte direkte Unterklassen:
AcylAlkylGroup,CarbonChain,Cycle,FattyAcid,HeadgroupDecorator
A functional group of a fatty acid, it can contain nested functional groups.
- Autor:
- Dominik Kopczynski, Nils Hoffmann
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected booleanprotected intprotected DoubleBondsprotected ElementTableprotected HashMap<String, ArrayList<FunctionalGroup>> protected KnownFunctionalGroupsprotected Stringprotected intprotected Stringprotected booleanprotected String -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungFunctionalGroup(String _name, int _position, int _count, DoubleBonds _double_bonds, boolean _is_atomic, String _stereochemistry, boolean _stereoBound, ElementTable _elements, HashMap<String, ArrayList<FunctionalGroup>> _functional_groups, KnownFunctionalGroups knownFunctionalGroups) FunctionalGroup(String _name, int _position, int _count, DoubleBonds _double_bonds, boolean _is_atomic, String _stereochemistry, boolean _stereoBound, ElementTable _elements, KnownFunctionalGroups knownFunctionalGroups) FunctionalGroup(String _name, int _position, int _count, KnownFunctionalGroups knownFunctionalGroups) FunctionalGroup(String _name, KnownFunctionalGroups knownFunctionalGroups) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddPosition(int pos) voidcopy()intgetCount()Returns a copy of the internally used functional groups map, with the virtual [X] group for regular LCBs removed.Returns the internal representation of the functional groups, including the virtual [X] group for regular LCBs.getName()intintbooleangetTotalFunctionalGroupCount(String functionalGroup) Return the total count for the given functional group name, or 0.booleanisAtomic()voidsetAtomic(boolean atomic) voidsetCount(int count) voidsetDoubleBonds(DoubleBonds doubleBonds) voidsetElements(ElementTable elements) voidsetFunctionalGroups(HashMap<String, ArrayList<FunctionalGroup>> functionalGroups) Set the internal functional groups.voidvoidsetPosition(int position) voidsetRingStereo(String ringStereo) voidsetStereoBound(boolean stereoBound) voidsetStereochemistry(String stereochemistry) voidshiftPositions(int shift) booleantoString(LipidLevel level)
-
Felddetails
-
name
-
position
protected int position -
count
protected int count -
stereochemistry
-
ringStereo
-
doubleBonds
-
atomic
protected boolean atomic -
stereoBound
protected boolean stereoBound -
elements
-
functionalGroups
-
knownFunctionalGroups
-
-
Konstruktordetails
-
FunctionalGroup
-
FunctionalGroup
public FunctionalGroup(String _name, int _position, int _count, KnownFunctionalGroups knownFunctionalGroups) -
FunctionalGroup
public FunctionalGroup(String _name, int _position, int _count, DoubleBonds _double_bonds, boolean _is_atomic, String _stereochemistry, boolean _stereoBound, ElementTable _elements, KnownFunctionalGroups knownFunctionalGroups) -
FunctionalGroup
public FunctionalGroup(String _name, int _position, int _count, DoubleBonds _double_bonds, boolean _is_atomic, String _stereochemistry, boolean _stereoBound, ElementTable _elements, HashMap<String, ArrayList<FunctionalGroup>> _functional_groups, KnownFunctionalGroups knownFunctionalGroups)
-
-
Methodendetails
-
copy
-
stereoInformationMissing
public boolean stereoInformationMissing() -
setName
-
getName
-
setStereoBound
public void setStereoBound(boolean stereoBound) -
getStereoBound
public boolean getStereoBound() -
setPosition
public void setPosition(int position) -
getPosition
public int getPosition() -
setCount
public void setCount(int count) -
getCount
public int getCount() -
getStereochemistry
-
setStereochemistry
-
getRingStereo
-
setRingStereo
-
getDoubleBonds
-
setDoubleBonds
-
setAtomic
public void setAtomic(boolean atomic) -
isAtomic
public boolean isAtomic() -
getElements
-
setElements
-
computeAndCopyElements
-
shiftPositions
public void shiftPositions(int shift) -
getTotalFunctionalGroupCount
Return the total count for the given functional group name, or 0.- Parameter:
functionalGroup- the functional group name.- Gibt zurück:
- the total count
-
getFunctionalGroups
Returns a copy of the internally used functional groups map, with the virtual [X] group for regular LCBs removed.- Gibt zurück:
- a copy of the internal functional groups
- Siehe auch:
-
getFunctionalGroupsInternal
Returns the internal representation of the functional groups, including the virtual [X] group for regular LCBs.- Gibt zurück:
- the internal datastructure by reference.
-
setFunctionalGroups
Set the internal functional groups.- Parameter:
functionalGroups- the functional groups to set
-
getFunctionalGroupElements
-
computeElements
public void computeElements() -
toString
-
getNDoubleBonds
- Löst aus:
ConstraintViolationException
-
addPosition
public void addPosition(int pos)
-