Package org.lifstools.jgoslin.domain
Class FunctionalGroup
java.lang.Object
org.lifstools.jgoslin.domain.FunctionalGroup
- Direct Known Subclasses:
AcylAlkylGroup
,CarbonChain
,Cycle
,FattyAcid
,HeadgroupDecorator
A functional group of a fatty acid, it can contain nested functional groups.
- Author:
- Dominik Kopczynski, Nils Hoffmann
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected int
protected DoubleBonds
protected ElementTable
protected Map<String,
ArrayList<FunctionalGroup>> protected KnownFunctionalGroups
protected String
protected int
protected String
protected String
-
Constructor Summary
ConstructorDescriptionFunctionalGroup
(String _name, int _position, int _count, DoubleBonds _double_bonds, boolean _is_atomic, String _stereochemistry, 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, ElementTable _elements, KnownFunctionalGroups knownFunctionalGroups) FunctionalGroup
(String _name, int _position, int _count, KnownFunctionalGroups knownFunctionalGroups) FunctionalGroup
(String _name, KnownFunctionalGroups knownFunctionalGroups) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPosition
(int pos) void
copy()
int
getCount()
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()
int
int
getTotalFunctionalGroupCount
(String functionalGroup) Return the total count for the given functional group name, or 0.boolean
isAtomic()
void
setAtomic
(boolean atomic) void
setCount
(int count) void
setDoubleBonds
(DoubleBonds doubleBonds) void
setElements
(ElementTable elements) void
setFunctionalGroups
(Map<String, ArrayList<FunctionalGroup>> functionalGroups) Set the internal functional groups.void
void
setPosition
(int position) void
setRingStereo
(String ringStereo) void
setStereochemistry
(String stereochemistry) void
shiftPositions
(int shift) toString
(LipidLevel level)
-
Field Details
-
name
-
position
-
count
-
stereochemistry
-
ringStereo
-
doubleBonds
-
atomic
-
elements
-
functionalGroups
-
knownFunctionalGroups
-
-
Constructor Details
-
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, ElementTable _elements, KnownFunctionalGroups knownFunctionalGroups) -
FunctionalGroup
public FunctionalGroup(String _name, int _position, int _count, DoubleBonds _double_bonds, boolean _is_atomic, String _stereochemistry, ElementTable _elements, HashMap<String, ArrayList<FunctionalGroup>> _functional_groups, KnownFunctionalGroups knownFunctionalGroups)
-
-
Method Details
-
copy
-
setName
-
getName
-
setPosition
-
getPosition
-
setCount
-
getCount
-
getStereochemistry
-
setStereochemistry
-
getRingStereo
-
setRingStereo
-
getDoubleBonds
-
setDoubleBonds
-
setAtomic
-
isAtomic
-
getElements
-
setElements
-
computeAndCopyElements
-
shiftPositions
-
getTotalFunctionalGroupCount
Return the total count for the given functional group name, or 0.- Parameters:
functionalGroup
- the functional group name.- Returns:
- the total count
-
getFunctionalGroups
Returns a copy of the internally used functional groups map, with the virtual [X] group for regular LCBs removed.- Returns:
- a copy of the internal functional groups
- See Also:
-
getFunctionalGroupsInternal
Returns the internal representation of the functional groups, including the virtual [X] group for regular LCBs.- Returns:
- the internal datastructure by reference.
-
setFunctionalGroups
Set the internal functional groups.- Parameters:
functionalGroups
- the functional groups to set
-
getFunctionalGroupElements
-
computeElements
-
toString
-
getNDoubleBonds
- Throws:
ConstraintViolationException
-
addPosition
-