Sha256: aeffb1dbbe9fb8a5282d0396a1dc703267532de72332584ae9685ff6aa7cf484

Contents?: true

Size: 1.94 KB

Versions: 1

Compression:

Stored size: 1.94 KB

Contents

/*
Copyright Ideaconsult Ltd. (C) 2005-2012 

Contact: jeliazkova.nina@gmail.com

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License
as published by the Free Software Foundation; either version 2.1
of the License, or (at your option) any later version.
All we ask is that proper credit is given for our work, which includes
- but is not limited to - adding the above copyright notice to the beginning
of your source code files, and to any copyright notice that you may distribute
with programs based on this work.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
*/

package toxtree.plugins.ames.rules;

import org.openscience.cdk.interfaces.IAtomContainerSet;

public class SMARTSGroup {
    
    protected String name;
    protected String smarts;
    protected IAtomContainerSet[] examples;
    
    public synchronized IAtomContainerSet getExamples(boolean value) {
        if (value) return examples[1];
        else return examples[0];
    }
    public synchronized void setExamples(boolean result,IAtomContainerSet examples) {
        if (result) this.examples[1] = examples;
        else this.examples[0] = examples;
    }
    public synchronized String getName() {
        return name;
    }
    public synchronized void setName(String name) {
        this.name = name;
    }
    public synchronized String getSmarts() {
        return smarts;
    }
    public synchronized void setSmarts(String smarts) {
        this.smarts = smarts;
    }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
toxtree-0.0.1 Toxtree-v2.6.13/src/toxtree/plugins/ames/rules/SMARTSGroup.java