planetLabVideoClient
Class StructBandwidthInfoBean

java.lang.Object
  extended by planetLabVideoClient.StructBandwidthInfoBean

public class StructBandwidthInfoBean
extends java.lang.Object

An instance of this class represents an instance of structBandwidthInfo. It has getters and setters for each member variable, so that it is possible to save/load it using the XMLEncoder.

Author:
Leo Bosnjak

Field Summary
private  double bw
           
private  StructIPBean nodeIP
           
 
Constructor Summary
StructBandwidthInfoBean()
          Create an empty instance of this class.
StructBandwidthInfoBean(structBandwidthInfo bwInfo)
          Create an instance of StructBandwidthInfoBean representing the given bwInfo.
 
Method Summary
 double getBw()
           
 StructIPBean getNodeIP()
           
 structBandwidthInfo getStructBandwidthInfo()
          Create a new structBandwidthInfo object, fill it with the values of this instance and return it to the caller.
 void setBw(double bw)
           
 void setData(structBandwidthInfo bwInfo)
          Write all values from bwInfo to own ones.
 void setNodeIP(StructIPBean nodeIP)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bw

private double bw

nodeIP

private StructIPBean nodeIP
Constructor Detail

StructBandwidthInfoBean

public StructBandwidthInfoBean()
Create an empty instance of this class.


StructBandwidthInfoBean

public StructBandwidthInfoBean(structBandwidthInfo bwInfo)
Create an instance of StructBandwidthInfoBean representing the given bwInfo.

Parameters:
bwInfo -
Method Detail

setData

public void setData(structBandwidthInfo bwInfo)
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 - the wrapped bandwidth info

getBw

public double getBw()
Returns:
the bw

setBw

public void setBw(double bw)
Parameters:
bw - the bw to set

getNodeIP

public StructIPBean getNodeIP()
Returns:
the nodeIP

setNodeIP

public void setNodeIP(StructIPBean nodeIP)
Parameters:
nodeIP - the nodeIP to set