Package adams.data.container
Interface DataPoint
-
- All Superinterfaces:
CloneHandler,Comparable,Serializable
- All Known Subinterfaces:
DataPointWithMetaData,XYSequencePointWithErrors
- All Known Implementing Classes:
AbstractDataPoint,InstancePoint,SequencePlotPoint,SpreadSheetRowPoint,TimeseriesPoint,XYSequencePoint
public interface DataPoint extends Serializable, Comparable, CloneHandler
Generic Interface for data points.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidassign(DataPoint other)Obtains the stored variables from the other data point.ObjectgetClone()Returns a clone of itself.DataContainergetParent()Returns the container this point belongs to.booleanhasParent()Returns whether the point belongs to a container.voidsetParent(DataContainer value)Sets the container this point belongs to.-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
setParent
void setParent(DataContainer value)
Sets the container this point belongs to.- Parameters:
value- the container
-
getParent
DataContainer getParent()
Returns the container this point belongs to.- Returns:
- the container, can be null
-
hasParent
boolean hasParent()
Returns whether the point belongs to a container.- Returns:
- true if the point belongs to a container
-
getClone
Object getClone()
Returns a clone of itself.- Specified by:
getClonein interfaceCloneHandler- Returns:
- the clone
-
assign
void assign(DataPoint other)
Obtains the stored variables from the other data point.- Parameters:
other- the data point to get the values from
-
-