mwalk Platform 0.3.0

mwalk.core
Class Receiver

java.lang.Object
  |
  +--mwalk.core.TreeNode
        |
        +--mwalk.core.Receiver

public class Receiver
extends TreeNode

A specialized TreeNode class that represents a receiver in the multicast tree.

Version:
1.0
Author:
Robert Chalmers
See Also:
Serialized Form

Field Summary
protected  PeriodTable intervals
          Period table representing receivers activity
(package private) static long serialVersionUID
          Serialized version ID
 
Fields inherited from class mwalk.core.TreeNode
active, children, data, ip, parents, serialVersionUID
 
Constructor Summary
Receiver(java.lang.String ip)
          Constructor.
 
Method Summary
 PeriodTable getIntervals()
          Return the receiver's activity table.
 boolean hasArrived(long time)
          Check whether the receiver's earliest active period has been reached.
 boolean isActive()
          Check whether receiver is explicitly marked active.
 boolean isActive(long time)
          Check whether receiver is active for a given timestamp.
 void loadIntervals(java.io.BufferedReader br)
          Read the activity table from parsed RTCP logs.
 
Methods inherited from class mwalk.core.TreeNode
activateLink, addChild, addChildLink, addParent, children, clearData, deactivateLink, delChild, delParent, equals, equals, getActiveChildren, getActiveChildren, getActiveLinks, getActiveLinks, getActiveList, getChildLink, getChildLinks, getChildren, getIP, getParents, hasChild, hasParent, parents, readObject, toLinkArray, toNodeArray, toNodeVector
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
Serialized version ID

intervals

protected PeriodTable intervals
Period table representing receivers activity
Constructor Detail

Receiver

public Receiver(java.lang.String ip)
Constructor.
Parameters:
String - the IP address of the reciever
Method Detail

getIntervals

public PeriodTable getIntervals()
Return the receiver's activity table.
Returns:
PeriodTable receiver's activity table

loadIntervals

public void loadIntervals(java.io.BufferedReader br)
                   throws BuildException
Read the activity table from parsed RTCP logs.
Parameters:
BufferedReader - reader associated to log
Throws:
BuildException - if parsing failed

isActive

public boolean isActive()
Check whether receiver is explicitly marked active.
Returns:
boolean whether receiver is active

isActive

public boolean isActive(long time)
Check whether receiver is active for a given timestamp.
Parameters:
long - timestamp to check
Returns:
boolean whether receiver is active

hasArrived

public boolean hasArrived(long time)
Check whether the receiver's earliest active period has been reached.
Parameters:
long - timestamp to check
Returns:
boolean whether receiver has been active

mwalk Platform 0.3.0

Submit a bug or feature mwalk Platform API Specification 0.3.0
Sensitivity: {Public:Research}
Copyright(c) 2000, Robert Chalmers