jigcell.compare
Interface IEditableDataElement

All Superinterfaces:
IDataElement, java.io.Serializable, java.awt.datatransfer.Transferable
All Known Implementing Classes:
EditableDataElement, PackedDoubleDataElement, PackedTreeDataElement, PackedTreeDataElement2, SparseTreeDataElement, SparseTreeDataElement2, TreeDataElement

public interface IEditableDataElement
extends IDataElement

This interface is implemented by classes that wish to provide a data element to the Comparator with additional editing capabilities.

This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.

Author:
Nicholas Allen

Nested Class Summary
 
Nested classes/interfaces inherited from interface jigcell.compare.IDataElement
IDataElement.Type
 
Method Summary
 void clear()
          Deletes all values in this element.
 void copyValue(long pos1, long pos2)
          Copies a value within the element.
 void makeList()
          Converts this element to a list.
 void moveValue(long pos1, long pos2)
          Moves a value within the element.
 void setValue(boolean value)
          Sets the element to a boolean.
 void setValue(double value)
          Sets the element to a double.
 void setValue(IDataElement value)
          Sets the element to a list.
 void setValue(long value)
          Sets the element to a long.
 void setValue(long pos, boolean value)
          Sets an element value to a boolean.
 void setValue(long pos, double value)
          Sets an element value to a double.
 void setValue(long pos, IDataElement value)
          Sets an element value to a list.
 void setValue(long pos, long value)
          Sets an element value to a long.
 void setValue(long pos, java.lang.String value)
          Sets an element value to a string.
 void setValue(java.lang.String value)
          Sets the element to a String.
 void setValueInterpreted(long pos, java.lang.String value)
          Sets an element value by parsing the textual representation of an element.
 void setValueInterpreted(java.lang.String value)
          Sets the element by parsing the textual representation of an element.
 void swapValues(long pos1, long pos2)
          Exchanges values within the element.
 void unsetValue(long pos)
          Deletes an element value.
 
Methods inherited from interface jigcell.compare.IDataElement
forceBooleanValue, forceBooleanValue, forceIntegralValue, forceIntegralValue, forceListValue, forceLiteralValue, forceLiteralValue, forceRealValue, forceRealValue, forceSlice, forceSlice, forceSlice, forceSlice, forceSlice, getBooleanValue, getBooleanValue, getIntegralValue, getIntegralValue, getLength, getListValue, getLiteralValue, getLiteralValue, getRealValue, getRealValue, getSlice, getSlice, getSlice, getSlice, getSlice, getType, getType, isAvailable, isScalar, memoryLock, memoryUnlock, toString, toString, toString, toString, toString, toString, toString
 
Methods inherited from interface java.awt.datatransfer.Transferable
getTransferData, getTransferDataFlavors, isDataFlavorSupported
 

Method Detail

clear

void clear()
Deletes all values in this element.


copyValue

void copyValue(long pos1,
               long pos2)
Copies a value within the element.

Parameters:
pos1 - Position to copy from
pos2 - Position to copy to

makeList

void makeList()
Converts this element to a list.


moveValue

void moveValue(long pos1,
               long pos2)
Moves a value within the element.

Parameters:
pos1 - The position to move from
pos2 - The position to move to

setValue

void setValue(boolean value)
Sets the element to a boolean.

Parameters:
value - Value

setValue

void setValue(IDataElement value)
Sets the element to a list.

Parameters:
value - Value

setValue

void setValue(double value)
Sets the element to a double.

Parameters:
value - Value

setValue

void setValue(long value)
Sets the element to a long.

Parameters:
value - Value

setValue

void setValue(java.lang.String value)
Sets the element to a String.

Parameters:
value - Value

setValue

void setValue(long pos,
              boolean value)
Sets an element value to a boolean.

Parameters:
pos - Value position
value - Value

setValue

void setValue(long pos,
              IDataElement value)
Sets an element value to a list.

Parameters:
pos - Value position
value - Value

setValue

void setValue(long pos,
              double value)
Sets an element value to a double.

Parameters:
pos - Value position
value - Value

setValue

void setValue(long pos,
              long value)
Sets an element value to a long.

Parameters:
pos - Value position
value - Value

setValue

void setValue(long pos,
              java.lang.String value)
Sets an element value to a string.

Parameters:
pos - Value position
value - Value

setValueInterpreted

void setValueInterpreted(java.lang.String value)
Sets the element by parsing the textual representation of an element.

Parameters:
value - Text to parse

setValueInterpreted

void setValueInterpreted(long pos,
                         java.lang.String value)
Sets an element value by parsing the textual representation of an element.

Parameters:
pos - Value position
value - Text to parse

swapValues

void swapValues(long pos1,
                long pos2)
Exchanges values within the element.

Parameters:
pos1 - A position to exchange
pos2 - Another position to exchange

unsetValue

void unsetValue(long pos)
Deletes an element value.

Parameters:
pos - Value position