Package chemaxon.checkers.result
Class MetalloceneCheckerResult
- java.lang.Object
-
- chemaxon.checkers.result.DefaultStructureCheckerResult
-
- chemaxon.checkers.result.MetalloceneCheckerResult
-
- All Implemented Interfaces:
StructureCheckerResult
@PublicAPI public class MetalloceneCheckerResult extends DefaultStructureCheckerResult
- Since:
- Marvin 5.4
-
-
Constructor Summary
Constructors Constructor Description MetalloceneCheckerResult(StructureChecker source, List<MolAtom> atoms, List<MolBond> bonds, StructureCheckerErrorType errorType, Molecule molecule, String description, String name, String localMenuName, String helpText, Icon icon, List<List<MolAtom>> fiveLongRings, List<MolAtom> metalAtoms)
MetalloceneCheckerResult(StructureChecker source, List<MolAtom> atoms, List<MolBond> bonds, StructureCheckerErrorType errorType, Molecule molecule, String description, String name, String localMenuName, String helpText, Icon icon, List<List<MolAtom>> fiveLongRings, List<MolAtom> metalAtoms, int errorCount)
Constructor which initialize all the properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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<List<MolAtom>>
getFiveLongRings()
List<MolAtom>
getMetalAtoms()
int
hashCode()
void
setFiveLongRings(List<List<MolAtom>> fiveLongRings)
This method sets the fiveLongRings property.void
setMetalAtoms(List<MolAtom> metalAtoms)
This method sets the metalAtoms property-
Methods inherited from class chemaxon.checkers.result.DefaultStructureCheckerResult
getAtoms, getBonds, getDescription, getErrorCount, getErrorDescription, getErrorType, getHelpText, getIcon, getLocalMenuName, getMolecule, getName, getSource, setAtoms, setBonds, setMolecule, toString
-
-
-
-
Constructor Detail
-
MetalloceneCheckerResult
@Deprecated public MetalloceneCheckerResult(StructureChecker source, List<MolAtom> atoms, List<MolBond> bonds, StructureCheckerErrorType errorType, Molecule molecule, String description, String name, String localMenuName, String helpText, Icon icon, List<List<MolAtom>> fiveLongRings, List<MolAtom> metalAtoms)
Deprecated.Constructor which initialize all the properties.- Parameters:
source
- is theStructureChecker
instance which identified the problematoms
- aList
ofMolAtom
which contains the affected atoms of the problembonds
- aList
ofMolBond
which contains the affected bonds of the problemerrorType
- aStructureCheckerErrorType
instance represents the type of the errormolecule
- is aMolecule
instance which contains the described problemdescription
- is short information about the problemname
- is the name of the checker which found the described problemlocalMenuName
- is aString
which should be shown in the local menu of Marvin SketchhelpText
- is help message for the problemicon
- is an instance ofIcon
which will be shown in Marvin Sketch checker dialogsfiveLongRings
- aList
ofList
ofMolAtom
represents all the five long rings in the moleculemetalAtoms
- aList
ofMolAtom
represents all the metallocene relevant metal atoms in the molecule
-
MetalloceneCheckerResult
public MetalloceneCheckerResult(StructureChecker source, List<MolAtom> atoms, List<MolBond> bonds, StructureCheckerErrorType errorType, Molecule molecule, String description, String name, String localMenuName, String helpText, Icon icon, List<List<MolAtom>> fiveLongRings, List<MolAtom> metalAtoms, int errorCount)
Constructor which initialize all the properties.- Parameters:
source
- is theStructureChecker
instance which identified the problematoms
- aList
ofMolAtom
which contains the affected atoms of the problembonds
- aList
ofMolBond
which contains the affected bonds of the problemerrorType
- aStructureCheckerErrorType
instance represents the type of the errormolecule
- is aMolecule
instance which contains the described problemdescription
- is short information about the problemname
- is the name of the checker which found the described problemlocalMenuName
- is aString
which should be shown in the local menu of Marvin SketchhelpText
- is help message for the problemicon
- is an instance ofIcon
which will be shown in Marvin Sketch checker dialogsfiveLongRings
- aList
ofList
ofMolAtom
represents all the five long rings in the moleculemetalAtoms
- aList
ofMolAtom
represents all the metallocene relevant metal atoms in the moleculeerrorCount
- count of identified errors
-
-
Method Detail
-
setFiveLongRings
public void setFiveLongRings(List<List<MolAtom>> fiveLongRings)
This method sets the fiveLongRings property.
-
setMetalAtoms
public void setMetalAtoms(List<MolAtom> metalAtoms)
This method sets the metalAtoms property
-
convert
public void convert(Molecule molecule, Map<String,Map<? extends Object,? extends Object>> convertData)
Description copied from interface:StructureCheckerResult
This method converts the entities contained in this result according to the convertData. By default this method isn't needed to call from any place.- Specified by:
convert
in interfaceStructureCheckerResult
- Overrides:
convert
in classDefaultStructureCheckerResult
- Parameters:
molecule
- the original molecule objectconvertData
- is a map withString
keys and Map values which contains the convert related information
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDefaultStructureCheckerResult
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classDefaultStructureCheckerResult
-
-