sidnet.core.query
Class Query

java.lang.Object
  extended by sidnet.core.query.Query

public class Query
extends java.lang.Object


Field Summary
static byte ALL
          internal constants
static int ANYTIME
          internal constants
static byte AVG
          SELECT clause arguments
static byte MAX
          SELECT clause arguments
static byte MIN
          SELECT clause arguments
static int NEVER
          constants
 
Constructor Summary
Query()
          The generator of id's
Query(int queryID, NetAddress sinkIP, NCS_Location2D sinkNCS_2D, NetAddress destIP, byte aggregationType, long samplingInterval, long startTime, long endTime, Region region, WhereClause whereClause)
           
Query(NetAddress sinkIP, NCS_Location2D sinkNCS_2D, NetAddress destIP, byte aggregationType, long samplingInterval, long startTime, long endTime, Region region, WhereClause whereClause)
          Creates a new instance of Query
Query(Query query)
           
 
Method Summary
 void dispatched(boolean val)
           
 byte getAggregationType()
          SELECT clause argument: ALL, MIN, MAX, AVG
 int getAsMessageSize()
           
 NetAddress getDestIP()
           
 long getEndTime()
           
 int getID()
           
 Region getRegion()
           
 long getSamplingInterval()
           
 NetAddress getSinkIP()
           
 NCS_Location2D getSinkNCSLocation2D()
           
 long getStartTime()
           
 WhereClause getWhereClause()
           
 boolean isDispatched()
           
 void setAggregationType(byte aggregationType)
           
 void setEndTime(long endTime)
           
 void setID(int id)
           
 void setRegion(Region region)
           
 void setSamplingInterval(long samplingInterval)
           
 void setSinkIP(NetAddress sinkIP)
           
 void setSinkNCSLocation2D(NCS_Location2D sinkNCS_2D)
           
 void setStartTime(long startTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NEVER

public static final int NEVER
constants

See Also:
Constant Field Values

ANYTIME

public static final int ANYTIME
internal constants

See Also:
Constant Field Values

ALL

public static final byte ALL
internal constants

See Also:
Constant Field Values

AVG

public static final byte AVG
SELECT clause arguments

See Also:
Constant Field Values

MIN

public static final byte MIN
SELECT clause arguments

See Also:
Constant Field Values

MAX

public static final byte MAX
SELECT clause arguments

See Also:
Constant Field Values
Constructor Detail

Query

public Query()
The generator of id's


Query

public Query(Query query)

Query

public Query(NetAddress sinkIP,
             NCS_Location2D sinkNCS_2D,
             NetAddress destIP,
             byte aggregationType,
             long samplingInterval,
             long startTime,
             long endTime,
             Region region,
             WhereClause whereClause)
Creates a new instance of Query


Query

public Query(int queryID,
             NetAddress sinkIP,
             NCS_Location2D sinkNCS_2D,
             NetAddress destIP,
             byte aggregationType,
             long samplingInterval,
             long startTime,
             long endTime,
             Region region,
             WhereClause whereClause)
Method Detail

setSamplingInterval

public void setSamplingInterval(long samplingInterval)

getSamplingInterval

public long getSamplingInterval()

setAggregationType

public void setAggregationType(byte aggregationType)

getAggregationType

public byte getAggregationType()
SELECT clause argument: ALL, MIN, MAX, AVG


setStartTime

public void setStartTime(long startTime)

getStartTime

public long getStartTime()

setEndTime

public void setEndTime(long endTime)

getEndTime

public long getEndTime()

getWhereClause

public WhereClause getWhereClause()

isDispatched

public boolean isDispatched()

dispatched

public void dispatched(boolean val)

setRegion

public void setRegion(Region region)

getRegion

public Region getRegion()

setID

public void setID(int id)

getID

public int getID()

setSinkIP

public void setSinkIP(NetAddress sinkIP)

getSinkIP

public NetAddress getSinkIP()

setSinkNCSLocation2D

public void setSinkNCSLocation2D(NCS_Location2D sinkNCS_2D)

getSinkNCSLocation2D

public NCS_Location2D getSinkNCSLocation2D()

getDestIP

public NetAddress getDestIP()

getAsMessageSize

public int getAsMessageSize()