|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectplanetLabVideoClient.BandwidthResultBean
public class BandwidthResultBean
An instance of this class represents a bandwidth result.
It is similar to the StructBandwidthInfoBean
class
except that the member which contains the destination of the measurement is not a StructIPBean
but a Node
.
The reason why is that the ip may change (and it will!) so the hostname and node-id are better to rely on ;-)
It has getters and setters for each member variable, so that it is possible to save/load it using the XMLEncoder
.
Field Summary | |
---|---|
private double |
bw
|
private Node |
destNode
|
Constructor Summary | |
---|---|
BandwidthResultBean()
Create an empty instance of this class. |
|
BandwidthResultBean(StructBandwidthInfoBean bwInfo,
Node destNode)
Create an instance of BandwidthResultBean |
|
BandwidthResultBean(structBandwidthInfo bwInfo,
Node destNode)
Create an instance of BandwidthResultBean |
Method Summary | |
---|---|
double |
getBw()
|
Node |
getDestNode()
Returns the destination Node of this bandwidth measurement. |
structBandwidthInfo |
getStructBandwidthInfo()
Create a new structBandwidthInfo object, fill it with the values of this instance and return it to the caller. |
StructBandwidthInfoBean |
getStructBandwidthInfoBean()
Create a new structBandwidthInfoBean object, fill it with the values of this instance and return it to the caller. |
void |
setBw(double bw)
|
void |
setData(structBandwidthInfo bwInfo,
Node destNode)
Write all values from bwInfo to own ones. |
void |
setDestNode(Node destNode)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private double bw
private Node destNode
Constructor Detail |
---|
public BandwidthResultBean()
public BandwidthResultBean(structBandwidthInfo bwInfo, Node destNode)
BandwidthResultBean representing the given bwInfo.
- Parameters:
bwInfo
-
BandwidthResultBean
public BandwidthResultBean(StructBandwidthInfoBean bwInfo,
Node destNode)
- Create an instance of
BandwidthResultBean representing the given bwInfo.
- Parameters:
bwInfo
-
Method Detail
setData
public void setData(structBandwidthInfo bwInfo,
Node destNode)
- Write all values from bwInfo to own ones.
- Parameters:
bwInfo
-
getStructBandwidthInfo
public structBandwidthInfo getStructBandwidthInfo()
- Create a new
structBandwidthInfo
object, fill it with the values of this instance and return it to the caller.
- Returns:
- structBandwidthInfo
getStructBandwidthInfoBean
public StructBandwidthInfoBean getStructBandwidthInfoBean()
- Create a new
structBandwidthInfoBean
object, fill it with the values of this instance and return it to the caller.
- Returns:
- StructBandwidthInfoBean
getBw
public double getBw()
- Returns:
- the bw
setBw
public void setBw(double bw)
- Parameters:
bw
- the bw to set
getDestNode
public Node getDestNode()
- Returns the destination
Node
of this bandwidth measurement.
- Returns:
- the destNode
setDestNode
public void setDestNode(Node destNode)
- Parameters:
destNode
- the destNode to set
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD