sidnet.stack.users.demo_multi_tree.routing
Class Message_Aggregation
java.lang.Object
sidnet.stack.users.demo_multi_tree.routing.Message_Aggregation
- All Implemented Interfaces:
- JistAPI.Timeless, Message
public class Message_Aggregation
- extends java.lang.Object
- implements Message
Fields inherited from interface jist.swans.misc.Message |
NULL |
Constructor Summary |
Message_Aggregation(int epochNumber,
double aggregatedValue,
int contorDataSensed,
int queryId,
int level,
int producerNodeId,
int aggregationType)
Creates a new instance of Message_MultiTree |
Method Summary |
void |
getBytes(byte[] b,
int offset)
Store packet into byte array. |
int |
getSize()
Return packet size or Constants.ZERO_WIRE_SIZE. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
epochNumber
public int epochNumber
aggregatedValue
public double aggregatedValue
contorDataSensed
public int contorDataSensed
queryId
public int queryId
level
public int level
aggregationType
public int aggregationType
hops
public int hops
producerNodeId
public int producerNodeId
Message_Aggregation
public Message_Aggregation(int epochNumber,
double aggregatedValue,
int contorDataSensed,
int queryId,
int level,
int producerNodeId,
int aggregationType)
- Creates a new instance of Message_MultiTree
getBytes
public void getBytes(byte[] b,
int offset)
- Store packet into byte array.
- Specified by:
getBytes
in interface Message
- Parameters:
b
- destination byte arrayoffset
- byte array starting offset
getSize
public int getSize()
- Return packet size or Constants.ZERO_WIRE_SIZE.
- Specified by:
getSize
in interface Message
- Returns:
- packet size [in bytes]