public class SgroupCheckerResult extends DefaultStructureCheckerResult
DefaultStructureCheckerResult
for identifying Sgroup
problems.Constructor and Description |
---|
SgroupCheckerResult(StructureChecker source,
List<MolAtom> atoms,
List<MolBond> bonds,
StructureCheckerErrorType errorType,
Molecule molecule,
String description,
List<Sgroup> groups,
String name,
String localMenuName,
String helpText,
Icon icon)
Constructor which initialize all the properties.
|
Modifier and Type | Method and Description |
---|---|
void |
convert(Molecule molecule,
Map<String,Map<? extends Object,? extends Object>> convertData)
This method converts the entities contained in this result according to the convertData.
|
boolean |
equals(Object obj) |
List<Sgroup> |
getSgroups()
Returns a
List which contains the affected groups of the problem |
int |
hashCode() |
void |
setSrgoups(List<Sgroup> groups)
This method sets the groups property
|
getAtoms, getBonds, getDescription, getErrorCount, getErrorDescription, getErrorType, getHelpText, getIcon, getLocalMenuName, getMolecule, getName, getSource, setAtoms, setBonds, setMolecule, toString
public SgroupCheckerResult(StructureChecker source, List<MolAtom> atoms, List<MolBond> bonds, StructureCheckerErrorType errorType, Molecule molecule, String description, List<Sgroup> groups, String name, String localMenuName, String helpText, Icon icon)
source
- is the StructureChecker
instance which identified the problematoms
- a List
of MolAtom
which contains the affected atoms of the problembonds
- a List
of MolBond
which contains the affected bonds of the problemerrorType
- is an instance of StructureCheckerErrorType
which identifies the problemmolecule
- is a Molecule
instance which contains the described problemdescription
- is short information about the problemgroups
- is a List
of Sgroup
which contains the affected groups of the problemname
- is the name of the checker which found the described problemlocalMenuName
- is a String
which should be shown in the local menu of Marvin SketchhelpText
- is help message for the problemicon
- is an instance of Icon
which will be shown in Marvin Sketch checker dialogspublic List<Sgroup> getSgroups()
List
which contains the affected groups of the problempublic int hashCode()
hashCode
in class DefaultStructureCheckerResult
public boolean equals(Object obj)
equals
in class DefaultStructureCheckerResult
public void convert(Molecule molecule, Map<String,Map<? extends Object,? extends Object>> convertData)
StructureCheckerResult
convert
in interface StructureCheckerResult
convert
in class DefaultStructureCheckerResult
molecule
- the original molecule objectconvertData
- is a map with String
keys and Map values which contains
the convert related information