Class ModifiedCompoundImpl
java.lang.Object
org.biojava.nbio.protmod.structure.ModifiedCompoundImpl
- All Implemented Interfaces:
 Serializable,Comparable<ModifiedCompound>,ModifiedCompound
public class ModifiedCompoundImpl
extends Object
implements ModifiedCompound, Serializable, Comparable<ModifiedCompound>
- Since:
 - 3.0
 - Author:
 - Jianjiong Gao
 - See Also:
 
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionModifiedCompoundImpl(ProteinModification modification, Collection<StructureAtomLinkage> linkages) ModifiedCompoundImpl(ProteinModification modification, StructureGroup modifiedResidue) Create a ModifiedCompoundImpl that has only one involved component. - 
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAtomLinkage(StructureAtomLinkage linkage) Add a linkage.voidaddAtomLinkages(Collection<StructureAtomLinkage> linkages) Add a collections of linkages.intcompareTo(ModifiedCompound compound) booleanbooleanreturn a description of this compoundgetGroups(boolean isAminoAcid) Deprecated.use getModification().getId()inthashCode()voidsetAtomLinkages(Set<StructureAtomLinkage> linkages) Set atom linkagesvoidsetDescription(String desc) voidsetGroups(Set<StructureGroup> groups) voidsetModification(ProteinModification protmod) toString() 
- 
Field Details
- 
newline
 
 - 
 - 
Constructor Details
- 
ModifiedCompoundImpl
public ModifiedCompoundImpl() - 
ModifiedCompoundImpl
Create a ModifiedCompoundImpl that has only one involved component. Use this constructor for a modified residue.- Parameters:
 modification-ProteinModification.modifiedResidue- modified group.- Throws:
 IllegalArgumentException- if either argument is null.
 - 
ModifiedCompoundImpl
public ModifiedCompoundImpl(ProteinModification modification, Collection<StructureAtomLinkage> linkages) - Parameters:
 modification- ProteinModification.linkages- a collection of atom linkages.- See Also:
 
 
 - 
 - 
Method Details
- 
setModification
- Specified by:
 setModificationin interfaceModifiedCompound
 - 
getModification
- Specified by:
 getModificationin interfaceModifiedCompound- Returns:
 ProteinModificationBeanoccurred on the residue.
 - 
getOriginalModificationId
Deprecated.use getModification().getId()- Returns:
 - the original modification ID.
 
 - 
getGroups
- Specified by:
 getGroupsin interfaceModifiedCompound- Returns:
 - a set of involved group.
 
 - 
getGroups
- Specified by:
 getGroupsin interfaceModifiedCompound- Parameters:
 isAminoAcid- true if amino acids.- Returns:
 - a set of involved group of the type.
 
 - 
setGroups
- Specified by:
 setGroupsin interfaceModifiedCompound
 - 
getAtomLinkages
- Specified by:
 getAtomLinkagesin interfaceModifiedCompound- Returns:
 - a set of atom linkages.
 - See Also:
 - 
#getLinkedGroupPairsStructureAtomLinkage
 
 - 
setAtomLinkages
Description copied from interface:ModifiedCompoundSet atom linkages- Specified by:
 setAtomLinkagesin interfaceModifiedCompound
 - 
addAtomLinkage
Description copied from interface:ModifiedCompoundAdd a linkage. Add new the involved groups first usingaddGroup.- Specified by:
 addAtomLinkagein interfaceModifiedCompound- Parameters:
 linkage- an atom linkage.- Returns:
 - true if this linkage was not already contained.
 - See Also:
 
 - 
addAtomLinkages
Description copied from interface:ModifiedCompoundAdd a collections of linkages.- Specified by:
 addAtomLinkagesin interfaceModifiedCompound- Parameters:
 linkages- an atom linkage.
 - 
crossChains
public boolean crossChains()- Specified by:
 crossChainsin interfaceModifiedCompound- Returns:
 - true if groups from multiple chains were involved
 
 - 
toString
 - 
getDescription
Description copied from interface:ModifiedCompoundreturn a description of this compound- Specified by:
 getDescriptionin interfaceModifiedCompound- Returns:
 - a description
 
 - 
setDescription
- Specified by:
 setDescriptionin interfaceModifiedCompound
 - 
compareTo
- Specified by:
 compareToin interfaceComparable<ModifiedCompound>
 - 
equals
 - 
hashCode
public int hashCode() 
 -