NativeTypeItem
- public abstract class ModelPredictor<Predictor,NativeTypeItem> extends net.idea.modbcum.p.AbstractDBProcessor<NativeTypeItem,IStructureRecord> implements IStructureDiagramHighlights
Modifier and Type | Field and Description |
---|---|
protected org.restlet.data.Reference |
applicationRootReference |
protected int |
classIndex |
protected weka.filters.Filter |
filter |
protected weka.core.Instances |
header |
protected Dimension |
imageSize |
protected ModelQueryResults |
model |
protected ModelURIReporter |
modelReporter |
protected PropertyURIReporter |
propertyReporter |
protected IStructureRecord |
record |
protected boolean |
structureRequired |
protected String[] |
targetURI |
protected boolean |
valuesRequired |
Constructor and Description |
---|
ModelPredictor(org.restlet.data.Reference applicationRootReference,
ModelQueryResults model,
ModelURIReporter modelReporter,
PropertyURIReporter propertyReporter,
String[] targetURI) |
close, getConnection, isCloseConnection, isEnabled, setCloseConnection, setConnection
addPropertyChangeListener, addPropertyChangeListener, getID, removePropertyChangeListener, removePropertyChangeListener, setEnabled
protected ModelQueryResults model
protected Dimension imageSize
protected boolean structureRequired
protected boolean valuesRequired
protected int classIndex
protected weka.core.Instances header
protected weka.filters.Filter filter
protected String[] targetURI
protected ModelURIReporter modelReporter
protected PropertyURIReporter propertyReporter
protected org.restlet.data.Reference applicationRootReference
protected IStructureRecord record
public ModelPredictor(org.restlet.data.Reference applicationRootReference, ModelQueryResults model, ModelURIReporter modelReporter, PropertyURIReporter propertyReporter, String[] targetURI) throws org.restlet.resource.ResourceException
org.restlet.resource.ResourceException
public Dimension getImageSize()
getImageSize
in interface IStructureDiagramDepiction<BufferedImage>
public void setImageSize(Dimension imageSize)
setImageSize
in interface IStructureDiagramDepiction<BufferedImage>
public ModelQueryResults getModel()
public boolean isValuesRequired()
public void setValuesRequired(boolean valuesRequired)
public boolean isStructureRequired()
public void setStructureRequired(boolean structureRequired)
public Predictor getPredictor()
public PropertyURIReporter getPropertyReporter()
public void setPropertyReporter(PropertyURIReporter propertyReporter)
public ModelURIReporter getModelReporter()
public void setModelReporter(ModelURIReporter modelReporter)
protected weka.core.Instances getHeader(org.restlet.data.Form form) throws IOException
IOException
protected int getClassIndex(org.restlet.data.Form form) throws Exception
Exception
protected boolean isSupported(Object predictor) throws org.restlet.resource.ResourceException
predictor
- org.restlet.resource.ResourceException
protected void extractRecordID(NativeTypeItem target, String url, IStructureRecord record) throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitException
public Predictor createPredictor(ModelQueryResults model) throws org.restlet.resource.ResourceException
org.restlet.resource.ResourceException
public abstract String getCompoundURL(NativeTypeItem target) throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitException
public abstract Object predict(NativeTypeItem target) throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitException
public IStructureRecord process(NativeTypeItem target) throws net.idea.modbcum.i.exceptions.AmbitException
process
in interface net.idea.modbcum.i.processors.IProcessor<NativeTypeItem,IStructureRecord>
net.idea.modbcum.i.exceptions.AmbitException
public void assignResults(IStructureRecord record, Object value) throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitException
public void open() throws net.idea.modbcum.i.exceptions.DbAmbitException
open
in interface net.idea.modbcum.i.processors.IProcessor<NativeTypeItem,IStructureRecord>
open
in class net.idea.modbcum.p.DefaultAmbitProcessor<NativeTypeItem,IStructureRecord>
net.idea.modbcum.i.exceptions.DbAmbitException
public BufferedImage getImage(org.openscience.cdk.interfaces.IAtomContainer mol) throws net.idea.modbcum.i.exceptions.AmbitException
getImage
in interface IStructureDiagramDepiction<BufferedImage>
net.idea.modbcum.i.exceptions.AmbitException
public BufferedImage getImage(org.openscience.cdk.interfaces.IAtomContainer mol, String ruleID, int width, int height, boolean atomnumbers) throws net.idea.modbcum.i.exceptions.AmbitException
getImage
in interface IStructureDiagramDepiction<BufferedImage>
net.idea.modbcum.i.exceptions.AmbitException
public String toString()
toString
in class net.idea.modbcum.p.DefaultAmbitProcessor<NativeTypeItem,IStructureRecord>
public BufferedImage getLegend(int width, int height) throws net.idea.modbcum.i.exceptions.AmbitException
getLegend
in interface IStructureDiagramDepiction<BufferedImage>
net.idea.modbcum.i.exceptions.AmbitException
protected BufferedImage writeMessages(String[] msg, int width, int height) throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitException
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.