sidnet.stack.users.topological_tree_aggregation.routing
Class Message_Aggregation

java.lang.Object
  extended by sidnet.stack.users.topological_tree_aggregation.routing.Message_Aggregation
All Implemented Interfaces:
JistAPI.Timeless, Message

public class Message_Aggregation
extends java.lang.Object
implements Message


Field Summary
 double aggregatedValue
           
 int aggregationType
           
 int contorDataSensed
           
 int epochNumber
           
 int hops
           
 int level
           
 int producerNodeId
           
 int queryId
           
 
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
 

Field Detail

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
Constructor Detail

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

Method Detail

getBytes

public void getBytes(byte[] b,
                     int offset)
Store packet into byte array.

Specified by:
getBytes in interface Message
Parameters:
b - destination byte array
offset - 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]