uk.co.agena.minerva.util.model
Class AbsoluteDataPoint

java.lang.Object
  extended by uk.co.agena.minerva.util.model.DataPoint
      extended by uk.co.agena.minerva.util.model.AbsoluteDataPoint
All Implemented Interfaces:
java.lang.Cloneable, Writable

public class AbsoluteDataPoint
extends DataPoint

This class represents DataPoints that have an absolute number (e.g. 1.233) as their "x" value.


Field Summary
 
Fields inherited from class uk.co.agena.minerva.util.model.DataPoint
connObjectId, label, value, version
 
Fields inherited from interface uk.co.agena.minerva.util.model.Writable
FIELD_SEPARATOR
 
Constructor Summary
AbsoluteDataPoint()
          Default constructor.
AbsoluteDataPoint(double value, int connObjectId, double absoluteValue)
          Constructs and AbsoluteDataPoint with the supplied "y" value, connected object ID and "x" value.
AbsoluteDataPoint(java.lang.String label, double value, int connObjectId, double absoluteValue)
          Constructs and AbsoluteDataPoint with the supplied label, "y" value, connected object ID and "x" value.
 
Method Summary
 java.lang.Object clone()
          Makes a copy of this AbsoluteDataPoint
 double getAbsoluteValue()
          Returns the absolute "x" value.
 void setAbsoluteValue(double absoluteValue)
          Sets the absolute "x" value.
 
Methods inherited from class uk.co.agena.minerva.util.model.DataPoint
getAdjustedValue, getConnObjectId, getLabel, getValue, getVersion, read, readRestOfFields, setConnObjectId, setLabel, setValue, setVersion, toHTMLString, toString, toString, write, writeRestOfFields
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbsoluteDataPoint

public AbsoluteDataPoint()
Default constructor.


AbsoluteDataPoint

public AbsoluteDataPoint(double value,
                         int connObjectId,
                         double absoluteValue)
Constructs and AbsoluteDataPoint with the supplied "y" value, connected object ID and "x" value. The label of the AbsoluteDataPoint will be initialised so that it stores the String version of the "x" value.

Parameters:
value - the "y" value
connObjectId - the ID of the object to which this AbsoluteDataPoint refers
absoluteValue - the "x" value

AbsoluteDataPoint

public AbsoluteDataPoint(java.lang.String label,
                         double value,
                         int connObjectId,
                         double absoluteValue)
Constructs and AbsoluteDataPoint with the supplied label, "y" value, connected object ID and "x" value.

Parameters:
label - the label for the AbsoluteDataPoint
value - the "y" value
connObjectId - the ID of the object to which this AbsoluteDataPoint refers
absoluteValue - the "x" value
Method Detail

getAbsoluteValue

public double getAbsoluteValue()
Returns the absolute "x" value.

Returns:
the absolute "x" value

setAbsoluteValue

public void setAbsoluteValue(double absoluteValue)
Sets the absolute "x" value.

Parameters:
absoluteValue - the new absolute "x" value

clone

public java.lang.Object clone()
Makes a copy of this AbsoluteDataPoint

Overrides:
clone in class DataPoint
Returns:
a copy of this AbsoluteDataPoint


Copyright © 2006 Agena Ltd. All Rights Reserved.