|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.introspect.SemanticDistanceModel.Tuple
A <QuickSerializable obs,Distance d, int num>
tuple.
Constructor Summary | |
---|---|
SemanticDistanceModel.Tuple(InputBuffer buffer)
|
|
SemanticDistanceModel.Tuple(QuickSerializable t,
Distance d,
int num)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object other)
|
Distance |
getDistance()
Get the distance value. |
QuickSerializable |
getKey()
Get the observation type. |
int |
getNum()
Get the approximate number of measurements incorporated into this distance approximation. |
Distance |
getPriority()
Get the priority of this tuple in a queue. |
void |
serialize(OutputBuffer buffer)
Add the object to the buffer . |
void |
setDistance(Distance d)
Set the distance value. |
void |
setNum(int num)
Set the approx number of measurements incorporated into this distance approximation. |
void |
setPriority(Distance prio)
Set the priority of this tuple in a queue. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SemanticDistanceModel.Tuple(QuickSerializable t, Distance d, int num)
t
- the observation type (key)d
- the distance valuenum
- the approx number of measurements that have been
incoporatded into this distance valuepublic SemanticDistanceModel.Tuple(InputBuffer buffer) throws QSException
Method Detail |
public void serialize(OutputBuffer buffer)
QuickSerializable
buffer
.
serialize
in interface QuickSerializable
buffer
- the output buffer to add the object topublic QuickSerializable getKey()
public Distance getDistance()
public void setDistance(Distance d)
public int getNum()
public void setNum(int num)
public Distance getPriority()
public void setPriority(Distance prio)
public boolean equals(Object other)
equals
in class Object
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |