Package org.rcsb.mmtf.spark.data
Class AtomSelectObject
- java.lang.Object
-
- org.rcsb.mmtf.spark.data.AtomSelectObject
-
- All Implemented Interfaces:
java.io.Serializable
public class AtomSelectObject extends java.lang.Object implements java.io.SerializableClass to make selections of atoms to be considered for inter-atom contacts.- Author:
- Anthony Bradley
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AtomSelectObject()Empty constructor sets the defaults.AtomSelectObject(java.lang.String[] atomNameList, java.lang.String[] elementNameList, java.lang.String[] groupNameList, boolean charged, java.lang.String groupType)Constructor for the atom select object that takes all the input
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AtomSelectObjectatomNameList(java.lang.String[] atomNameList)Set the array of atom names allowed.AtomSelectObjectatomNameList(java.util.List<java.lang.String> atomNameList)Set the list of atom names allowed.AtomSelectObjectcharged(boolean charged)Set whether charged elements spuld be foundAtomSelectObjectelementNameList(java.lang.String[] elementNameList)Set the array of element names allowed.AtomSelectObjectelementNameList(java.util.List<java.lang.String> elementNameList)Set the list of element names allowed.java.util.List<java.lang.String>getAtomNameList()java.util.List<java.lang.String>getElementNameList()java.util.List<java.lang.String>getGroupNameList()java.lang.StringgetGroupType()AtomSelectObjectgroupNameList(java.lang.String[] groupNameList)Set the array of group names allowed.AtomSelectObjectgroupNameList(java.util.List<java.lang.String> groupNameList)Set the list of group names allowed.AtomSelectObjectgroupType(java.lang.String groupType)Set the type of group allowed.booleanisCharged()
-
-
-
Constructor Detail
-
AtomSelectObject
public AtomSelectObject(java.lang.String[] atomNameList, java.lang.String[] elementNameList, java.lang.String[] groupNameList, boolean charged, java.lang.String groupType)Constructor for the atom select object that takes all the input- Parameters:
groupType- a string specifying the type of the groupatomNameList- the list of atoms to considergroupNameList- the list of groups to consider (e.g. LYS)charged- whether to consider charged atoms only (true)elementNameList- the list of elements to consider
-
AtomSelectObject
public AtomSelectObject()
Empty constructor sets the defaults.
-
-
Method Detail
-
getAtomNameList
public java.util.List<java.lang.String> getAtomNameList()
- Returns:
- the atomNameList
-
atomNameList
public AtomSelectObject atomNameList(java.util.List<java.lang.String> atomNameList)
Set the list of atom names allowed.- Parameters:
atomNameList- the atomNameList to set- Returns:
- the
AtomSelectObjectupdated
-
atomNameList
public AtomSelectObject atomNameList(java.lang.String[] atomNameList)
Set the array of atom names allowed.- Parameters:
atomNameList- the atomNameList to set- Returns:
- the
AtomSelectObjectupdated
-
getElementNameList
public java.util.List<java.lang.String> getElementNameList()
- Returns:
- the elementNameList
-
elementNameList
public AtomSelectObject elementNameList(java.util.List<java.lang.String> elementNameList)
Set the list of element names allowed.- Parameters:
elementNameList- the elementNameList to set- Returns:
- the
AtomSelectObjectupdated
-
elementNameList
public AtomSelectObject elementNameList(java.lang.String[] elementNameList)
Set the array of element names allowed.- Parameters:
elementNameList- the elementNameList to set- Returns:
- the
AtomSelectObjectupdated
-
getGroupNameList
public java.util.List<java.lang.String> getGroupNameList()
- Returns:
- the groupNameList
-
groupNameList
public AtomSelectObject groupNameList(java.util.List<java.lang.String> groupNameList)
Set the list of group names allowed.- Parameters:
groupNameList- the groupNameList to set- Returns:
- the
AtomSelectObjectupdated
-
groupNameList
public AtomSelectObject groupNameList(java.lang.String[] groupNameList)
Set the array of group names allowed.- Parameters:
groupNameList- the groupNameList to set- Returns:
- the
AtomSelectObjectupdated
-
isCharged
public boolean isCharged()
- Returns:
- the charged
-
charged
public AtomSelectObject charged(boolean charged)
Set whether charged elements spuld be found- Parameters:
charged- the charged to set- Returns:
- the
AtomSelectObjectupdated
-
getGroupType
public java.lang.String getGroupType()
- Returns:
- the groupType
-
groupType
public AtomSelectObject groupType(java.lang.String groupType)
Set the type of group allowed.- Parameters:
groupType- the groupType to set- Returns:
- the
AtomSelectObjectupdated
-
-