|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.introspect.SemanticDistanceModel.Segment
A Segment
object contains the internal model state
associated with a single state. It can be used to swap the
information to/from a SemanticDistanceModel
.
Constructor Summary | |
---|---|
SemanticDistanceModel.Segment(InputBuffer buffer)
Constructs a Segment from its
serialize d form. |
|
SemanticDistanceModel.Segment(QuickSerializable type,
SemanticDistanceModel.BoundedPrioQueue queue,
Distance age,
int clients)
Create a new Segment . |
Method Summary | |
---|---|
protected Distance |
getAge()
Get the age |
protected int |
getClients()
Get the number of clients represented |
protected SemanticDistanceModel.BoundedPrioQueue |
getQueue()
Get the queue of distances. |
QuickSerializable |
id()
Returns the unique ID for this Segment . |
void |
serialize(OutputBuffer buffer)
Add the object to the buffer . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SemanticDistanceModel.Segment(QuickSerializable type, SemanticDistanceModel.BoundedPrioQueue queue, Distance age, int clients)
Segment
.
type
- TODOqueue
- The distances between type
and othersage
- TODOclients
- TODOpublic SemanticDistanceModel.Segment(InputBuffer buffer) throws QSException
Segment
from its
serialize
d form.
Method Detail |
public QuickSerializable id()
SegmentedModel.Segment
Segment
. This ID
serves as the only key identifying a Segment
-
Segment.equals
should never be called.
(Segment.id()).equals
and
(Segment.id()).hashCode
, however, may be called
quite often. Avoid using QuickSerializable
IDs
for which those methods are expensive.
id
in interface SegmentedModel.Segment
Segment
.protected SemanticDistanceModel.BoundedPrioQueue getQueue()
protected Distance getAge()
protected int getClients()
public void serialize(OutputBuffer buffer)
QuickSerializable
buffer
.
serialize
in interface QuickSerializable
buffer
- the output buffer to add the object topublic String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |