jigcell.compare.objective
Class BooleanRelationalObjective
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
jigcell.compare.objective.BooleanRelationalObjective
- 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, IRelationalObjective
public class BooleanRelationalObjective
- extends Objective
- implements IRelationalObjective
A generator whose function is the result of a boolean relation.
This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.
- Author:
- Nicholas Allen
- See Also:
- Serialized Form
| 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 |
| 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 java.awt.datatransfer.Transferable |
getTransferData, getTransferDataFlavors, isDataFlavorSupported |
| Methods inherited from interface jigcell.compare.objective.IObjective |
clear |
FALSE
protected static final IEditableDataElement FALSE
- False result
TRUE
protected static final IEditableDataElement TRUE
- True result
NAME_GENERATOR
protected static final java.lang.String NAME_GENERATOR
- Display name of this generator
- See Also:
- Constant Field Values
BooleanRelationalObjective
public BooleanRelationalObjective()
- Creates a new generator based upon a boolean relation.
getCustomizableInstances
public static java.lang.Object getCustomizableInstances()
- Generates an instance.
getRelation
public java.lang.String getRelation()
- The relation.
- Specified by:
getRelation in interface IRelationalObjective
getRelations
public java.util.List getRelations()
- The valid relations
- Specified by:
getRelations in interface IRelationalObjective
setRelation
public void setRelation(java.lang.String relation)
- Sets the suggested relation. Implementations should act on this reasonably.
- Specified by:
setRelation in interface IRelationalObjective
- Parameters:
relation - Relation
checkScalarTypes
protected boolean checkScalarTypes(IDataElement.Type type1,
IDataElement.Type type2)
- Ensures that both inputs are scalar types.
- Parameters:
type1 - Element type 1type2 - Element type 2
evaluate
protected IDataElement evaluate(IDataElement input)
- Computes the values of this generator.
- Overrides:
evaluate in class Objective
- Parameters:
input - List of the inputs provided to this generator
evaluateEquality
protected IDataElement evaluateEquality(IDataElement e1,
IDataElement e2)
- Evaluates and returns the associated element for equality.
- Parameters:
e1 - Element 1e2 - Element 2
evaluateGreaterThan
protected IDataElement evaluateGreaterThan(IDataElement e1,
IDataElement e2)
- Evaluates and returns the associated element for greater than.
- Parameters:
e1 - Element 1e2 - Element 2
evaluateGreaterThanEqual
protected IDataElement evaluateGreaterThanEqual(IDataElement e1,
IDataElement e2)
- Evaluates and returns the associated element for greater than or equal.
- Parameters:
e1 - Element 1e2 - Element 2
evaluateInequality
protected IDataElement evaluateInequality(IDataElement e1,
IDataElement e2)
- Evaluates and returns the associated element for inequality.
- Parameters:
e1 - Element 1e2 - Element 2
evaluateLessThan
protected IDataElement evaluateLessThan(IDataElement e1,
IDataElement e2)
- Evaluates and returns the associated element for greater than or equal.
- Parameters:
e1 - Element 1e2 - Element 2
evaluateLessThanEqual
protected IDataElement evaluateLessThanEqual(IDataElement e1,
IDataElement e2)
- Evaluates and returns the associated element for greater than or equal.
- Parameters:
e1 - Element 1e2 - Element 2