|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.cam.ch.wwmm.opsin.NameToStructureConfig
public class NameToStructureConfig
Allows OPSIN to be configured e.g. enable processing of radicals Example usage: NameToStructureConfig n2sConfig = new NameToStructureConfig(); n2sconfig.setAllowRadicals(true); nts.parseChemicalName(chemicalName, n2sConfig) where nts is an instance of NameToStructure
Constructor Summary | |
---|---|
NameToStructureConfig()
Constructs a NameToStructureConfig with default settings: allowRadicals = false detailedFailureAnalysis = false |
Method Summary | |
---|---|
NameToStructureConfig |
clone()
|
static NameToStructureConfig |
getDefaultConfigInstance()
Constructs a NameToStructureConfig with default settings: allowRadicals = false detailedFailureAnalysis = false |
boolean |
isAllowRadicals()
Are radicals allowed? e.g. |
boolean |
isDetailedFailureAnalysis()
Should OPSIN attempt reverse parsing to more accurately determine why parsing failed |
void |
setAllowRadicals(boolean allowRadicals)
Sets whether radicals allowed? e.g. |
void |
setDetailedFailureAnalysis(boolean detailedFailureAnalysis)
Sets whether OPSIN should attempt reverse parsing to more accurately determine why parsing failed |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NameToStructureConfig()
Method Detail |
---|
public boolean isAllowRadicals()
public void setAllowRadicals(boolean allowRadicals)
public boolean isDetailedFailureAnalysis()
public void setDetailedFailureAnalysis(boolean detailedFailureAnalysis)
public static NameToStructureConfig getDefaultConfigInstance()
public NameToStructureConfig clone()
clone
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |