public class Crystal extends AtomContainer implements Serializable, ICrystal, Cloneable
The crystal is designed to store only the asymmetric atoms. Though this is not enforced, it is assumed by all methods.
atomCount, atoms, bondCount, bonds, growArraySize, lonePairCount, lonePairs, singleElectronCount, singleElectrons, stereoElements| Constructor and Description |
|---|
Crystal()
Constructs a new crystal with zero length cell axis.
|
Crystal(IAtomContainer container)
Constructs a new crystal with zero length cell axis
and adds the atoms in the AtomContainer as cell content.
|
| Modifier and Type | Method and Description |
|---|---|
ICrystal |
clone()
Makes a clone of this crystal.
|
javax.vecmath.Vector3d |
getA()
Gets the A unit cell axes in Cartesian coordinates
as a three element double array.
|
javax.vecmath.Vector3d |
getB()
Gets the B unit cell axes in Cartesian coordinates
as a three element double array.
|
javax.vecmath.Vector3d |
getC()
Gets the C unit cell axes in Cartesian coordinates
as a three element double array.
|
String |
getSpaceGroup()
Gets the space group of this crystal.
|
Integer |
getZ()
Gets the number of asymmetric parts in the unit cell.
|
void |
setA(javax.vecmath.Vector3d newAxis)
Sets the A unit cell axes in Cartesian coordinates in a
Euclidean space.
|
void |
setB(javax.vecmath.Vector3d newAxis)
Sets the B unit cell axes in Cartesian coordinates.
|
void |
setC(javax.vecmath.Vector3d newAxis)
Sets the C unit cell axes in Cartesian coordinates.
|
void |
setSpaceGroup(String group)
Sets the space group of this crystal.
|
void |
setZ(Integer value)
Sets the number of asymmetric parts in the unit cell.
|
String |
toString()
Returns a String representation of this crystal.
|
add, addAtom, addBond, addBond, addBond, addElectronContainer, addLonePair, addLonePair, addSingleElectron, addSingleElectron, addStereoElement, atoms, bonds, contains, contains, contains, contains, contains, electronContainers, getAtom, getAtomCount, getAtomNumber, getBond, getBond, getBondCount, getBondNumber, getBondNumber, getBondOrderSum, getConnectedAtomsCount, getConnectedAtomsList, getConnectedBondsCount, getConnectedBondsCount, getConnectedBondsList, getConnectedElectronContainersList, getConnectedLonePairsCount, getConnectedLonePairsList, getConnectedSingleElectronsCount, getConnectedSingleElectronsList, getElectronContainer, getElectronContainerCount, getFirstAtom, getLastAtom, getLonePair, getLonePairCount, getLonePairNumber, getMaximumBondOrder, getMinimumBondOrder, getSingleElectron, getSingleElectronCount, getSingleElectronNumber, getTitle, indexOf, indexOf, indexOf, indexOf, isEmpty, lonePairs, remove, removeAllBonds, removeAllElectronContainers, removeAllElements, removeAtom, removeAtom, removeAtomAndConnectedElectronContainers, removeAtomOnly, removeAtomOnly, removeBond, removeBond, removeBond, removeElectronContainer, removeElectronContainer, removeLonePair, removeLonePair, removeSingleElectron, removeSingleElectron, setAtom, setAtoms, setBonds, setStereoElements, setTitle, singleElectrons, stateChanged, stereoElementsaddListener, addProperties, compare, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddBond, addBond, addBond, addElectronContainer, addLonePair, addLonePair, addSingleElectron, addSingleElectron, addStereoElement, atoms, bonds, contains, contains, contains, contains, contains, electronContainers, getAtom, getAtomCount, getAtomNumber, getBond, getBond, getBondCount, getBondNumber, getBondNumber, getBondOrderSum, getConnectedAtomsCount, getConnectedAtomsList, getConnectedBondsCount, getConnectedBondsCount, getConnectedBondsList, getConnectedElectronContainersList, getConnectedLonePairsCount, getConnectedLonePairsList, getConnectedSingleElectronsCount, getConnectedSingleElectronsList, getElectronContainer, getElectronContainerCount, getFirstAtom, getLastAtom, getLonePair, getLonePairCount, getLonePairNumber, getMaximumBondOrder, getMinimumBondOrder, getSingleElectron, getSingleElectronCount, getSingleElectronNumber, getTitle, indexOf, indexOf, indexOf, indexOf, isEmpty, lonePairs, remove, removeAllBonds, removeAllElectronContainers, removeAllElements, removeAtom, removeAtom, removeAtomAndConnectedElectronContainers, removeAtomOnly, removeAtomOnly, removeBond, removeBond, removeBond, removeElectronContainer, removeElectronContainer, removeLonePair, removeLonePair, removeSingleElectron, removeSingleElectron, setAtom, setAtoms, setBonds, setStereoElements, setTitle, singleElectrons, stereoElementsaddListener, addProperties, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setPropertygetBuilderstateChangedpublic Crystal()
public Crystal(IAtomContainer container)
container - the AtomContainer providing the atoms and bondspublic void setA(javax.vecmath.Vector3d newAxis)
public javax.vecmath.Vector3d getA()
getA in interface ICrystalsetA(javax.vecmath.Vector3d)public void setB(javax.vecmath.Vector3d newAxis)
public javax.vecmath.Vector3d getB()
getB in interface ICrystalsetB(javax.vecmath.Vector3d)public void setC(javax.vecmath.Vector3d newAxis)
public javax.vecmath.Vector3d getC()
getC in interface ICrystalsetC(javax.vecmath.Vector3d)public String getSpaceGroup()
getSpaceGroup in interface ICrystalsetSpaceGroup(java.lang.String)public void setSpaceGroup(String group)
setSpaceGroup in interface ICrystalgroup - the space group of this crystal structuregetSpaceGroup()public Integer getZ()
getZ in interface ICrystalsetZ(java.lang.Integer)public void setZ(Integer value)
public ICrystal clone() throws CloneNotSupportedException
clone in interface IAtomContainerclone in interface IChemObjectclone in interface ICrystalclone in class AtomContainerCloneNotSupportedExceptionpublic String toString()
toString in interface IChemObjecttoString in class AtomContainerCopyright © 2017. All rights reserved.