|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.data.container.AbstractDataPoint
adams.data.instance.InstancePoint
public class InstancePoint
A 2-dimensional point (X: attribute index, Y: internal value).
| Field Summary | |
|---|---|
protected Integer |
m_X
the X value. |
protected Double |
m_Y
the Y value. |
| Fields inherited from class adams.data.container.AbstractDataPoint |
|---|
m_Parent |
| Constructor Summary | |
|---|---|
InstancePoint()
Initializes the point with no points and no ID. |
|
InstancePoint(Integer x,
Double y)
Initializes the point with no ID. |
|
| Method Summary | |
|---|---|
void |
assign(DataPoint other)
Obtains the stored variables from the other data point. |
int |
compareTo(Object o)
Compares this object with the specified object for order. |
Integer |
getX()
Returns the X value. |
Double |
getY()
Returns the Y value. |
InstancePoint |
parse(String s)
Parses a string and instantiates a sequence point of it. |
void |
setX(Integer value)
Sets the X value. |
void |
setY(Double value)
Sets the Y value. |
String |
toString()
Returns a string representation of the point. |
| Methods inherited from class adams.data.container.AbstractDataPoint |
|---|
equals, getClone, getParent, hasParent, setParent, toDouble, toDouble, toDouble, toDouble, toDouble, toDouble, toDouble, toDouble |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Integer m_X
protected Double m_Y
| Constructor Detail |
|---|
public InstancePoint()
public InstancePoint(Integer x,
Double y)
x - the X valuey - the Y value| Method Detail |
|---|
public void setX(Integer value)
value - the new X valuepublic Integer getX()
public void setY(Double value)
value - the new Y valuepublic Double getY()
public int compareTo(Object o)
compareTo in interface ComparablecompareTo in class AbstractDataPointo - the object to be compared.
ClassCastException - if the specified object's type prevents it
from being compared to this object.public void assign(DataPoint other)
assign in interface DataPointassign in class AbstractDataPointother - the data point to get the values frompublic InstancePoint parse(String s)
s - the string to parse
public String toString()
toString in class AbstractDataPoint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||