public class LayoutMessage extends MessageWritable<java.lang.Long,float[]>
payloadVertex, ttl, value
Constructor and Description |
---|
LayoutMessage()
Parameter-less constructor
|
LayoutMessage(long payloadVertex,
float[] coords)
Creates a new PlainMessage with ttl 0.
|
LayoutMessage(long payloadVertex,
int ttl,
float[] coords)
Creates a new PlainMessage with the given ttl.
|
LayoutMessage(long payloadVertex,
int ttl,
float[] coords,
int deg)
Creates a new PlainMessage with the given ttl and the given deg.
|
Modifier and Type | Method and Description |
---|---|
int |
getDeg() |
MessageWritable<java.lang.Long,float[]> |
propagate()
This method propagates the message by creating a new MessageWritable and copying the containing values.
|
MessageWritable<java.lang.Long,float[]> |
propagateAndDie()
This method propagates the message by creating a new MessageWritable and copying the containing values.
|
void |
setDeg(int deg) |
protected void |
specificRead(java.io.DataInput in)
Method that guarantees that extending classes are serialized properly.
|
protected void |
specificWrite(java.io.DataOutput out)
Method that guarantees that extending classes are de-serialized properly.
|
getPayloadVertex, getTTL, getValue, isAZombie, readFields, setValue, write
public LayoutMessage()
public LayoutMessage(long payloadVertex, float[] coords)
payloadVertex
- coords
- public LayoutMessage(long payloadVertex, int ttl, float[] coords)
payloadVertex
- ttl
- coords
- public LayoutMessage(long payloadVertex, int ttl, float[] coords, int deg)
payloadVertex
- ttl
- coords
- public int getDeg()
public MessageWritable<java.lang.Long,float[]> propagate()
MessageWritable
propagate
in class MessageWritable<java.lang.Long,float[]>
public MessageWritable<java.lang.Long,float[]> propagateAndDie()
MessageWritable
propagateAndDie
in class MessageWritable<java.lang.Long,float[]>
public void setDeg(int deg)
protected void specificRead(java.io.DataInput in) throws java.io.IOException
MessageWritable
specificRead
in class MessageWritable<java.lang.Long,float[]>
java.io.IOException
protected void specificWrite(java.io.DataOutput out) throws java.io.IOException
MessageWritable
specificWrite
in class MessageWritable<java.lang.Long,float[]>
java.io.IOException