Package org.jmol.adapter.smarter
Class AtomSetCollectionReader
- java.lang.Object
-
- org.jmol.adapter.smarter.AtomSetCollectionReader
-
- All Implemented Interfaces:
javajs.api.GenericLineReader
- Direct Known Subclasses:
AbinitReader,AimsReader,AlchemyReader,AmpacReader,BasisFunctionReader,BilbaoReader,BinaryDcdReader,CastepReader,CgdReader,CifReader,CrystalReader,CubeReader,DmolReader,EspressoReader,FAHReader,FoldingXyzReader,ForceFieldReader,GaussianWfnReader,GhemicalMMReader,GromacsReader,GulpReader,HyperChemReader,InputReader,JanaReader,JmeReader,JSONReader,MagresReader,MdCrdReader,MolReader,MopacReader,PdbReader,ShelxReader,SiestaReader,TlsDataOnlyReader,VaspOutcarReader,VaspPoscarReader,Wien2kReader,XcrysdenReader,XmlReader,XyzReader
public abstract class AtomSetCollectionReader extends Object implements javajs.api.GenericLineReader
-
-
Field Summary
Fields Modifier and Type Field Description StringaddedDataStringaddedDataKeyprotected booleanaddVibrationsbooleanallow_a_len_1protected booleanallowPDBFilterstatic floatANGSTROMS_PER_BOHRbooleanapplySymmetryToBondsAtomSetCollectionascintbaseAtomIndexprotected javajs.api.GenericBinaryDocumentbinaryDocprotected javajs.util.BSbsFilterprotected javajs.util.BSbsModelsStringcalculationType(package private) booleancentroidPackedbooleancontinuingbooleandebuggingprotected intdesiredModelNumberintdesiredSpaceGroupIndexintdesiredVibrationNumberbooleandoApplySymmetryprotected booleandoCentralize(package private) booleandoCentroidUnitCellprotected booleandoCheckUnitCellbooleandoConvertToFractionalprivate ObjectdomainsbooleandoPackUnitCellbooleandoProcessLinesbooleandoReadMolecularOrbitalsprivate booleandoSetOrientationObjectdssr(package private) booleanfileCoordinatesAreFractionalprotected StringfileNameprotected javajs.util.P3fileOffsetprivate javajs.util.P3fileOffsetFractionalprotected StringfilePathprotected javajs.util.P3fileScalingObjectfillRangeStringfilterprivate Stringfilter1private Stringfilter2private booleanfilterAltLocprivate booleanfilterAtomNameprivate StringfilterAtomNameTerminatorprivate booleanfilterAtomTypeprivate StringfilterAtomTypeStrprivate booleanfilterChainprivate booleanfilterElementprivate booleanfilterEveryNthprivate booleanfilterGroup3protected booleanfilterHeteroprivate intfilterN(package private) StringfilterSymopprivate int[]firstLastStepbooleanfixJavaFloatprotected booleanforcePackedprotected booleangetHeaderbooleanhaveAtomFilterprotected booleanhaveModelprotected booleanhavePartialChargeFilterMap<String,Object>htParamsprotected booleanignoreFileSpaceGroupNameprotected booleanignoreFileSymmetryOperatorsprotected booleanignoreFileUnitCellprotected booleanignoreStructureprotected booleaniHaveFractionalCoordinatesbooleaniHaveSymmetryOperatorsbooleaniHaveUnitCellbooleanisBinaryprotected booleanisConcatenatedprotected booleanisDSSP1protected booleanisFinalizedbooleanisMolecularprotected booleanisPrimitiveprotected booleanisSequentialprotected booleanisTrajectoryprivate intlastModelNumberint[]latticeCellsprotected floatlatticeScalingprotected StringlatticeTypeStringlineprivate javajs.util.SBloadNotejavajs.util.Lst<javajs.util.M4>lstNCSprivate javajs.util.M3matRotprotected javajs.util.M3matUnitCellOrientation(package private) booleanmergingintmodDimintmodelNumberprivate javajs.util.Lst<String>moreUnitCellInfoMSInterfacemsprotected booleanmustFinalizeModelSetprivate StringnameRequiredprotected int[]nextprivate intnFilteredprivate intnMatrixElementsprotected javajs.util.OCoutfloatpackingErrorprivate StringpreviousScriptprivate StringpreviousSpaceGroupprivate float[]previousUnitCellStringprevlinejavajs.util.M3primitiveToCrystalprotected intptLineprotected javajs.util.P3ptSupercellprotected BufferedReaderreaderprotected StringreaderNameprotected booleanrequiresBSFilterprotected booleanreverseModelsprotected booleanrotateHexCellprotected StringsgNameprivate StringsiteScriptprotected intstateScriptVersionIntStringstrSupercellSymmetryInterfacesymmetry(package private) floatsymmetryRangeprotected inttemplateAtomCountMap<String,Object>thisBiomoleculejavajs.util.Lst<javajs.util.P3[]>trajectoryStepsfloat[]ucItemsprotected javajs.util.P3unitCellOffsetprivate booleanunitCellOffsetFractionalfloat[]unitCellParamsprotected booleanuseAltNamesprotected booleanuseFileModelNumbersObjectvalidationintvibrationNumberbooleanvibsFractionalViewervwr
-
Constructor Summary
Constructors Constructor Description AtomSetCollectionReader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AtomaddAtomXYZSymName(String[] tokens, int i, String sym, String name)voidaddExplicitLatticeVector(int i, float[] xyz, int i0)voidaddJmolScript(String script)voidaddSites(Map<String,Map<String,Object>> htSites)protected voidaddSiteScript(String script)private booleanallowAtomName(String atomName, String f)voidappendLoadNote(String info)voidappendUunitCellInfo(String info)voidapplySymmetryAndSetTrajectory()SymmetryInterfaceapplySymTrajASCR()voidcheckCurrentLineForScript()private booleancheckFilter(Atom atom, String f)booleancheckFilterKey(String key)booleancheckLastModel()sets continuing and doProcessLinesprotected booleancheckLine()protected voidcheckLineForScript(String line)private booleancheckUnitCell(int n)private voidcheckUnitCellOffset()voidclearUnitCell()protected intcloneLastAtomSet(int ac, javajs.util.P3[] pts)StringdiscardLinesUntilBlank()StringdiscardLinesUntilContains(String containsMatch)StringdiscardLinesUntilContains2(String s1, String s2)StringdiscardLinesUntilNonBlank()StringdiscardLinesUntilStartsWith(String startsWith)protected voiddiscardPreviousAtoms()booleandoGetModel(int modelNumber, String title)booleandoGetVibration(int vibrationNumber)protected voiddoPreSymmetry()protected double[][]fill3x3(String[] tokens, int pt)fills a double[3][3]protected voidfillDataBlock(String[][] data, int minLineLen)fills an array with a pre-defined number of lines of token data, skipping blank lines in the processprotected voidfillDataBlockFixed(String[][] data, int col0, int colWidth, int minLineLen)Fills an array with a predefined number of lines of data that is arranged in fixed FORTRAN-like column format.protected float[]fillFloatArray(String s, int width, float[] data)fills a float array with string data from a fileprotected voidfillFrequencyData(int iAtom0, int ac, int modelAtomCount, boolean[] ignore, boolean isWide, int col0, int colWidth, int[] atomIndexes, int minLineLen, String[][] data)Extracts a block of frequency data from a file.protected booleanfilterAtom(Atom atom, int iAtom)protected booleanfilterReject(String f, String code, String atomCode)voidfinalizeMOData(Map<String,Object> moData)voidfinalizeModelSet()protected voidfinalizeReaderASCR()protected voidfinalizeSubclassReader()optional reader-specific method run first.protected voidfinalizeSubclassSymmetry(boolean haveSymmetry)private Objectfinish()private voidfixBaseIndices()voidforceSymmetry(boolean andPack)protected voidfractionalizeCoordinates(boolean toFrac)static StringgetElementSymbol(int elementNumber)StringgetFilter(String key)protected static javajs.util.Lst<Integer>getFortranFormatLengths(String s)get all integers after letters negative entries are spaces (1Xn)ObjectgetInterface(String className)protected SymmetryInterfacegetNewSymmetry()protected static String[]getStrings(String sinfo, int nFields, int width)protected SymmetryInterfacegetSymmetry()String[]getTokens()static float[]getTokensFloat(String s, float[] f, int n)private voidinitialize()private voidinitializeCartesianToFractional()protected voidinitializeReader()protected voidinitializeSymmetry()protected voidinitializeSymmetryOptions()protected voidinitializeTrajectoryFile()booleanisLastModel(int modelNumber)after reading a model, Q: Is this the last model?protected voidnewAtomSet(String name)protected floatparseFloat()protected floatparseFloatRange(String s, int iStart, int iEnd)floatparseFloatStr(String s)protected intparseInt()intparseIntAt(String s, int iStart)protected intparseIntRange(String s, int iStart, int iEnd)intparseIntStr(String s)protected StringparseToken()protected StringparseTokenNext(String s)protected StringparseTokenRange(String s, int iStart, int iEnd)protected StringparseTokenStr(String s)protected voidprocessBinaryDocument()protected voidprocessDOM(Object DOMNode)Stringrd()protected javajs.util.V3[]read3Vectors(boolean isBohr)read three vectors, as for unit cube definitions allows for non-numeric data preceding the number block(package private) ObjectreadData()protected ObjectreadDataObject(Object node)protected StringreadLines(int nLines)StringreadNextLine()booleanrejectAtomName(String name)StringRL()protected voidset2D()voidsetAtomCoord(Atom atom)AtomsetAtomCoordScaled(Atom atom, String[] tokens, int i, float f)protected voidsetAtomCoordTokens(Atom atom, String[] tokens, int i)voidsetAtomCoordXYZ(Atom atom, float x, float y, float z)voidsetChainID(Atom atom, String label)protected voidsetElementAndIsotope(Atom atom, String str)allow 13C, 15N, 2H, etc.private voidsetError(Throwable e)protected voidsetFilter(String filter0)protected voidsetFilterAtomTypeStr(String s)voidsetFractionalCoordinates(boolean TF)voidsetIsPDB()protected StringsetLoadNote()protected voidsetModelPDB(boolean isPDB)voidsetSpaceGroupName(String name)intsetSymmetryOperator(String xyz)voidsetTransform(float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3)voidsetUnitCell(float a, float b, float c, float alpha, float beta, float gamma)voidsetUnitCellItem(int i, float x)protected voidsetup(String fullPath, Map<String,Object> htParams, Object readerOrDocument)protected voidsetupASCR(String fullPath, Map<String,Object> htParams, Object readerOrDocument)
-
-
-
Field Detail
-
ANGSTROMS_PER_BOHR
public static final float ANGSTROMS_PER_BOHR
- See Also:
- Constant Field Values
-
isBinary
public boolean isBinary
-
debugging
public boolean debugging
-
requiresBSFilter
protected boolean requiresBSFilter
-
primitiveToCrystal
public javajs.util.M3 primitiveToCrystal
-
asc
public AtomSetCollection asc
-
reader
protected BufferedReader reader
-
binaryDoc
protected javajs.api.GenericBinaryDocument binaryDoc
-
readerName
protected String readerName
-
trajectorySteps
public javajs.util.Lst<javajs.util.P3[]> trajectorySteps
-
domains
private Object domains
-
validation
public Object validation
-
dssr
public Object dssr
-
isConcatenated
protected boolean isConcatenated
-
addedData
public String addedData
-
addedDataKey
public String addedDataKey
-
fixJavaFloat
public boolean fixJavaFloat
-
lstNCS
public javajs.util.Lst<javajs.util.M4> lstNCS
-
line
public String line
-
prevline
public String prevline
-
next
protected int[] next
-
ptLine
protected int ptLine
-
latticeType
protected String latticeType
-
latticeCells
public int[] latticeCells
-
fillRange
public Object fillRange
-
doProcessLines
public boolean doProcessLines
-
iHaveUnitCell
public boolean iHaveUnitCell
-
iHaveSymmetryOperators
public boolean iHaveSymmetryOperators
-
continuing
public boolean continuing
-
vwr
public Viewer vwr
-
doApplySymmetry
public boolean doApplySymmetry
-
ignoreFileSymmetryOperators
protected boolean ignoreFileSymmetryOperators
-
isTrajectory
protected boolean isTrajectory
-
applySymmetryToBonds
public boolean applySymmetryToBonds
-
doCheckUnitCell
protected boolean doCheckUnitCell
-
getHeader
protected boolean getHeader
-
isSequential
protected boolean isSequential
-
isMolecular
public boolean isMolecular
-
templateAtomCount
protected int templateAtomCount
-
modelNumber
public int modelNumber
-
vibrationNumber
public int vibrationNumber
-
desiredVibrationNumber
public int desiredVibrationNumber
-
bsModels
protected javajs.util.BS bsModels
-
useFileModelNumbers
protected boolean useFileModelNumbers
-
havePartialChargeFilter
protected boolean havePartialChargeFilter
-
calculationType
public String calculationType
-
sgName
protected String sgName
-
ignoreFileUnitCell
protected boolean ignoreFileUnitCell
-
ignoreFileSpaceGroupName
protected boolean ignoreFileSpaceGroupName
-
unitCellParams
public float[] unitCellParams
-
desiredModelNumber
protected int desiredModelNumber
-
symmetry
public SymmetryInterface symmetry
-
out
protected javajs.util.OC out
-
iHaveFractionalCoordinates
protected boolean iHaveFractionalCoordinates
-
doPackUnitCell
public boolean doPackUnitCell
-
ptSupercell
protected javajs.util.P3 ptSupercell
-
mustFinalizeModelSet
protected boolean mustFinalizeModelSet
-
forcePacked
protected boolean forcePacked
-
packingError
public float packingError
-
rotateHexCell
protected boolean rotateHexCell
-
isPrimitive
protected boolean isPrimitive
-
modDim
public int modDim
-
loadNote
private javajs.util.SB loadNote
-
doConvertToFractional
public boolean doConvertToFractional
-
fileCoordinatesAreFractional
boolean fileCoordinatesAreFractional
-
merging
boolean merging
-
symmetryRange
float symmetryRange
-
firstLastStep
private int[] firstLastStep
-
lastModelNumber
private int lastModelNumber
-
desiredSpaceGroupIndex
public int desiredSpaceGroupIndex
-
fileScaling
protected javajs.util.P3 fileScaling
-
latticeScaling
protected float latticeScaling
-
fileOffset
protected javajs.util.P3 fileOffset
-
fileOffsetFractional
private javajs.util.P3 fileOffsetFractional
-
unitCellOffset
protected javajs.util.P3 unitCellOffset
-
unitCellOffsetFractional
private boolean unitCellOffsetFractional
-
moreUnitCellInfo
private javajs.util.Lst<String> moreUnitCellInfo
-
filePath
protected String filePath
-
fileName
protected String fileName
-
stateScriptVersionInt
protected int stateScriptVersionInt
-
baseAtomIndex
public int baseAtomIndex
-
isFinalized
protected boolean isFinalized
-
haveModel
protected boolean haveModel
-
previousSpaceGroup
private String previousSpaceGroup
-
previousUnitCell
private float[] previousUnitCell
-
nMatrixElements
private int nMatrixElements
-
ucItems
public float[] ucItems
-
matUnitCellOrientation
protected javajs.util.M3 matUnitCellOrientation
-
bsFilter
protected javajs.util.BS bsFilter
-
filter
public String filter
-
haveAtomFilter
public boolean haveAtomFilter
-
filterAltLoc
private boolean filterAltLoc
-
filterGroup3
private boolean filterGroup3
-
filterChain
private boolean filterChain
-
filterAtomName
private boolean filterAtomName
-
filterAtomType
private boolean filterAtomType
-
filterAtomTypeStr
private String filterAtomTypeStr
-
filterAtomNameTerminator
private String filterAtomNameTerminator
-
filterElement
private boolean filterElement
-
filterHetero
protected boolean filterHetero
-
filterEveryNth
private boolean filterEveryNth
-
filterSymop
String filterSymop
-
filterN
private int filterN
-
nFiltered
private int nFiltered
-
doSetOrientation
private boolean doSetOrientation
-
doCentralize
protected boolean doCentralize
-
addVibrations
protected boolean addVibrations
-
useAltNames
protected boolean useAltNames
-
ignoreStructure
protected boolean ignoreStructure
-
isDSSP1
protected boolean isDSSP1
-
allowPDBFilter
protected boolean allowPDBFilter
-
doReadMolecularOrbitals
public boolean doReadMolecularOrbitals
-
reverseModels
protected boolean reverseModels
-
nameRequired
private String nameRequired
-
doCentroidUnitCell
boolean doCentroidUnitCell
-
centroidPacked
boolean centroidPacked
-
strSupercell
public String strSupercell
-
allow_a_len_1
public boolean allow_a_len_1
-
filter1
private String filter1
-
filter2
private String filter2
-
matRot
private javajs.util.M3 matRot
-
ms
public MSInterface ms
-
vibsFractional
public boolean vibsFractional
-
previousScript
private String previousScript
-
siteScript
private String siteScript
-
-
Method Detail
-
setupASCR
protected void setupASCR(String fullPath, Map<String,Object> htParams, Object readerOrDocument)
-
fixBaseIndices
private void fixBaseIndices()
-
processDOM
protected void processDOM(Object DOMNode)
- Parameters:
DOMNode-
-
checkLine
protected boolean checkLine() throws Exception- Returns:
- true if need to read new line
- Throws:
Exception
-
checkLastModel
public boolean checkLastModel()
sets continuing and doProcessLines- Returns:
- TRUE if continuing, FALSE if not
-
isLastModel
public boolean isLastModel(int modelNumber)
after reading a model, Q: Is this the last model?- Parameters:
modelNumber-- Returns:
- Yes/No
-
appendLoadNote
public void appendLoadNote(String info)
-
initializeTrajectoryFile
protected void initializeTrajectoryFile()
-
finalizeSubclassReader
protected void finalizeSubclassReader() throws Exceptionoptional reader-specific method run first.- Throws:
Exception
-
setLoadNote
protected String setLoadNote()
-
setIsPDB
public void setIsPDB()
-
setModelPDB
protected void setModelPDB(boolean isPDB)
-
finish
private Object finish()
-
setError
private void setError(Throwable e)
- Parameters:
e-
-
initialize
private void initialize()
-
initializeSymmetryOptions
protected void initializeSymmetryOptions()
-
doGetModel
public boolean doGetModel(int modelNumber, String title)
-
discardPreviousAtoms
protected void discardPreviousAtoms()
-
initializeSymmetry
protected final void initializeSymmetry()
-
newAtomSet
protected void newAtomSet(String name)
-
cloneLastAtomSet
protected int cloneLastAtomSet(int ac, javajs.util.P3[] pts) throws Exception- Throws:
Exception
-
setSpaceGroupName
public void setSpaceGroupName(String name)
-
setSymmetryOperator
public int setSymmetryOperator(String xyz)
-
initializeCartesianToFractional
private void initializeCartesianToFractional()
-
clearUnitCell
public void clearUnitCell()
-
setUnitCellItem
public void setUnitCellItem(int i, float x)
-
setUnitCell
public void setUnitCell(float a, float b, float c, float alpha, float beta, float gamma)
-
addExplicitLatticeVector
public void addExplicitLatticeVector(int i, float[] xyz, int i0)
-
checkUnitCell
private boolean checkUnitCell(int n)
-
getSymmetry
protected SymmetryInterface getSymmetry()
-
checkUnitCellOffset
private void checkUnitCellOffset()
-
fractionalizeCoordinates
protected void fractionalizeCoordinates(boolean toFrac)
-
getNewSymmetry
protected SymmetryInterface getNewSymmetry()
-
setFractionalCoordinates
public void setFractionalCoordinates(boolean TF)
-
setFilterAtomTypeStr
protected void setFilterAtomTypeStr(String s)
-
setFilter
protected void setFilter(String filter0)
-
checkFilterKey
public boolean checkFilterKey(String key)
-
filterAtom
protected boolean filterAtom(Atom atom, int iAtom)
- Parameters:
atom-iAtom-- Returns:
- true if we want this atom
-
checkFilter
private boolean checkFilter(Atom atom, String f)
- Parameters:
atom-f-- Returns:
- true if a filter is found
-
rejectAtomName
public boolean rejectAtomName(String name)
-
set2D
protected void set2D()
-
doGetVibration
public boolean doGetVibration(int vibrationNumber)
-
setTransform
public void setTransform(float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3)
-
setAtomCoordXYZ
public void setAtomCoordXYZ(Atom atom, float x, float y, float z)
-
setAtomCoord
public void setAtomCoord(Atom atom)
-
applySymmetryAndSetTrajectory
public void applySymmetryAndSetTrajectory() throws Exception- Throws:
Exception
-
applySymTrajASCR
public SymmetryInterface applySymTrajASCR() throws Exception
- Throws:
Exception
-
finalizeSubclassSymmetry
protected void finalizeSubclassSymmetry(boolean haveSymmetry) throws Exception- Parameters:
haveSymmetry-- Throws:
Exception
-
getElementSymbol
public static String getElementSymbol(int elementNumber)
-
fillDataBlock
protected void fillDataBlock(String[][] data, int minLineLen) throws Exception
fills an array with a pre-defined number of lines of token data, skipping blank lines in the process- Parameters:
data-minLineLen- TODO- Throws:
Exception
-
fill3x3
protected double[][] fill3x3(String[] tokens, int pt) throws Exception
fills a double[3][3]- Parameters:
tokens- or null if to read each line for three values (as last 3 on line)pt- initial index; if tokens == null, then negative index is from end of each line- Returns:
- double[3][3]
- Throws:
Exception
-
fillFloatArray
protected float[] fillFloatArray(String s, int width, float[] data) throws Exception
fills a float array with string data from a file- Parameters:
s- string data containing floatswidth- column width or 0 to read tokensdata- result data to be filled- Returns:
- data
- Throws:
Exception
-
fillFrequencyData
protected void fillFrequencyData(int iAtom0, int ac, int modelAtomCount, boolean[] ignore, boolean isWide, int col0, int colWidth, int[] atomIndexes, int minLineLen, String[][] data) throws ExceptionExtracts a block of frequency data from a file. This block may be of two types -- either X Y Z across a row or each of X Y Z on a separate line. Data is presumed to be in fixed FORTRAN-like column format, not space-separated columns.- Parameters:
iAtom0- the first atom to be assigned a frequencyac- the number of atoms to be assignedmodelAtomCount- the number of atoms in each modelignore- the frequencies to ignore because the user has selected only certain vibrations to be read or for whatever reason; length serves to set the number of frequencies to be readisWide- when TRUE, this is a table that has X Y Z for each mode within the same row; when FALSE, this is a table that has X Y Z for each mode on a separate line.col0- the column in which data startscolWidth- the width of the data columnsatomIndexes- an array either null or indicating exactly which atoms get the frequencies (used by CrystalReader)minLineLen- TODOdata- TODO- Throws:
Exception
-
fillDataBlockFixed
protected void fillDataBlockFixed(String[][] data, int col0, int colWidth, int minLineLen) throws Exception
Fills an array with a predefined number of lines of data that is arranged in fixed FORTRAN-like column format. Used exclusively for frequency data- Parameters:
data-col0-colWidth-minLineLen- or -ptNonblank- Throws:
Exception
-
discardLinesUntilStartsWith
public String discardLinesUntilStartsWith(String startsWith) throws Exception
- Throws:
Exception
-
discardLinesUntilContains
public String discardLinesUntilContains(String containsMatch) throws Exception
- Throws:
Exception
-
discardLinesUntilContains2
public String discardLinesUntilContains2(String s1, String s2) throws Exception
- Throws:
Exception
-
discardLinesUntilNonBlank
public String discardLinesUntilNonBlank() throws Exception
- Throws:
Exception
-
checkLineForScript
protected void checkLineForScript(String line)
-
checkCurrentLineForScript
public void checkCurrentLineForScript()
-
addJmolScript
public void addJmolScript(String script)
-
addSiteScript
protected void addSiteScript(String script)
-
getTokens
public String[] getTokens()
-
getTokensFloat
public static float[] getTokensFloat(String s, float[] f, int n)
-
parseFloat
protected float parseFloat()
-
parseFloatStr
public float parseFloatStr(String s)
-
parseFloatRange
protected float parseFloatRange(String s, int iStart, int iEnd)
-
parseInt
protected int parseInt()
-
parseIntStr
public int parseIntStr(String s)
-
parseIntAt
public int parseIntAt(String s, int iStart)
-
parseIntRange
protected int parseIntRange(String s, int iStart, int iEnd)
-
parseToken
protected String parseToken()
-
getFortranFormatLengths
protected static javajs.util.Lst<Integer> getFortranFormatLengths(String s)
get all integers after letters negative entries are spaces (1Xn)- Parameters:
s-- Returns:
- Vector of integers
-
read3Vectors
protected javajs.util.V3[] read3Vectors(boolean isBohr) throws Exceptionread three vectors, as for unit cube definitions allows for non-numeric data preceding the number block- Parameters:
isBohr-- Returns:
- three vectors
- Throws:
Exception
-
setElementAndIsotope
protected void setElementAndIsotope(Atom atom, String str)
allow 13C, 15N, 2H, etc. for isotopes- Parameters:
atom-str-
-
finalizeModelSet
public void finalizeModelSet()
-
readNextLine
public String readNextLine() throws Exception
- Specified by:
readNextLinein interfacejavajs.api.GenericLineReader- Throws:
Exception
-
appendUunitCellInfo
public void appendUunitCellInfo(String info)
-
forceSymmetry
public void forceSymmetry(boolean andPack)
-
-