jigcell.compare.objective
Class Objective
java.lang.Object
javax.swing.TransferHandler
jigcell.compare.impl.Transferer
jigcell.compare.impl.DataSource
jigcell.compare.data.DataGenerator
jigcell.compare.data.EditableDataGenerator
jigcell.compare.data.ProgrammableDataGenerator
jigcell.compare.objective.Objective
- All Implemented Interfaces:
- java.awt.datatransfer.Transferable, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, IDataGenerator, IDataSource, IEditableDataGenerator, IProgrammableDataGenerator, IReadableDataSource, IWriteableDataSource, IObjective
- Direct Known Subclasses:
- BooleanRelationalObjective, GenericPhenotypeObjective, MetricObjective, MinkowskiObjective, ObjectiveHelper, ScriptEvaluationObjective, WOSSObjective
public abstract class Objective
- extends ProgrammableDataGenerator
- implements IObjective
Implementation of DataGenerator whose associated element is a function result.
This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.
- Author:
- Nicholas Allen
- See Also:
- Serialized Form
Field Summary |
protected static IDataElement |
ERROR
Error result |
protected static java.lang.String |
OPTION_DATA
Option for the data this generator uses |
protected static java.lang.String |
OPTION_FUNCTION
Option for the function this generator uses |
Fields inherited from class jigcell.compare.impl.Transferer |
CSV_FOOTER, CSV_LINEPOSTPEND, CSV_LINEPREPEND, CSV_LINESEPARATOR, HTML_FOOTER, HTML_HEADPOSTPEND, HTML_HEADPREPEND, HTML_HEADSEPARATOR, HTML_LINEPOSTPEND, HTML_LINEPREPEND, HTML_LINESEPARATOR |
Fields inherited from class javax.swing.TransferHandler |
COPY, COPY_OR_MOVE, MOVE, NONE |
Constructor Summary |
protected |
Objective()
Creates a new data generator based upon a function evaluation. |
Methods inherited from class jigcell.compare.data.ProgrammableDataGenerator |
addEvaluationListener, clear, copy, createCustomizer, fireEvaluationError, fireEvaluationError, fireEvaluationStart, fireEvaluationStop, getAllowDescriptionQuery, getCallStack, getElement, getElement, getEvaluationLock, getInputTypeChecker, getInterface, getOutputTypeChecker, initializeSource, isCached, peekElement, peekInterface, propertyChange, removeEvaluationListener, setAllowDescriptionQuery, setInputTypeChecker, setInterfaceClass, setOutputTypeChecker, updateInterface |
Methods inherited from class jigcell.compare.data.DataGenerator |
clone, compareByName, copy, generateGUID, getAttribute, getComment, getCopiedFrom, getName, getPredictedContents, getTransferData, isCopy, isCopyRelated, read, setCopyName, setName, toString |
Methods inherited from class jigcell.compare.impl.DataSource |
addOption, addPropertyChangeListener, addPropertyChangeListener, configure, getOption, getOptions, getOptionType, getPropertyChangeListeners, getPropertyChangeListeners, getReadDescriptionOption, getReadIconOption, getState, getWriteDescriptionOption, getWriteIconOption, persistSource, removePropertyChangeListener, removePropertyChangeListener, setOptions, setOptionType, setReadDescriptionOption, setReadIconOption, setWriteDescriptionOption, setWriteIconOption, unpersistSource |
Methods inherited from class jigcell.compare.impl.Transferer |
addExtension, addFlavor, createCSVTable, createFormattedTable, createHTMLTable, getExceptionRecorder, getExpectedClasses, getExpectedClasses, getExpectedClasses, getFlavors, getFlavors, getPreferredExtensions, getPreferredExtensions, getTransferClass, getTransferDataFlavors, getTransferFlavor, isDataFlavorSupported, transfer |
Methods inherited from class javax.swing.TransferHandler |
canImport, createTransferable, exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getSourceActions, getVisualRepresentation, importData |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jigcell.compare.objective.IObjective |
clear |
Methods inherited from interface java.awt.datatransfer.Transferable |
getTransferData, getTransferDataFlavors, isDataFlavorSupported |
ERROR
protected static final IDataElement ERROR
- Error result
OPTION_DATA
protected static final java.lang.String OPTION_DATA
- Option for the data this generator uses
- See Also:
- Constant Field Values
OPTION_FUNCTION
protected static final java.lang.String OPTION_FUNCTION
- Option for the function this generator uses
- See Also:
- Constant Field Values
Objective
protected Objective()
- Creates a new data generator based upon a function evaluation.
getObjectiveForGenerator
public static IObjective getObjectiveForGenerator(IDataGenerator generator)
- The objective of a generator.
- Parameters:
generator
- Generator
getData
public IDataGeneratorList getData()
- The set of data used.
- Specified by:
getData
in interface IObjective
getFunction
public java.lang.String getFunction()
- The function used for the objective computation.
- Specified by:
getFunction
in interface IObjective
setData
public void setData(IDataGeneratorList data)
- Sets the collection of data to draw from. The objective will never modify this data.
- Specified by:
setData
in interface IObjective
- Parameters:
data
- Data
setFunction
public void setFunction(java.lang.String function)
- Sets the function used to compute the objective.
- Specified by:
setFunction
in interface IObjective
- Parameters:
function
- Textual description of a function
evaluate
protected IDataElement evaluate()
- Evaluates the associated element.
- Specified by:
evaluate
in class ProgrammableDataGenerator
evaluate
protected IDataElement evaluate(IDataElement input)
- Computes the values of this generator.
- Parameters:
input
- List of the inputs provided to this generator