de.fhkl.zw.mkup.rattrap.localizer.tools
Class ChartData

java.lang.Object
  extended by de.fhkl.zw.mkup.rattrap.localizer.tools.ChartData

public class ChartData
extends java.lang.Object

ChartData is a utility class created so we don't have to send 4 different arrays to the GUI for graphing. It is used like a C/C++ structure. It has publicly accessable arrays for avg delay times, packet loss, host names, and IP addresses. It also stores the actually output for the traceroute program.

Version:
1.0 31 Aug 1998
Author:
Terrence Truta

Field Summary
 java.lang.String address
           
 int[] avg
           
 int hops
           
 java.lang.String[] hostName
           
 java.lang.String[] IPNum
           
 int[] packetLoss
           
 boolean pingData
           
 long time
           
 java.util.Vector trace_out
           
 
Method Summary
 java.lang.String getAddress()
          Returns the address (host name) to which the data stored in theis object belongs.
 int getLength()
          R eturns the length of the internal parallel arrays.
 long getTime()
          Returns the time of in milliseconds (since Jan 1970) when the data in the object was created.
 void setAddress(java.lang.String s)
          Sets the address (host name) to which the data stored in this object belongs.
 void setTime(long t)
          Sets the time of in milliseconds (since Jan 1970) when the data in the object was created.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

address

public java.lang.String address

avg

public int[] avg

hostName

public java.lang.String[] hostName

IPNum

public java.lang.String[] IPNum

packetLoss

public int[] packetLoss

hops

public int hops

trace_out

public java.util.Vector trace_out

pingData

public boolean pingData

time

public long time
Method Detail

getLength

public int getLength()
R eturns the length of the internal parallel arrays. This number represents the amount of hops or hosts between the local host and the choosen host


setAddress

public void setAddress(java.lang.String s)
Sets the address (host name) to which the data stored in this object belongs.


getAddress

public java.lang.String getAddress()
Returns the address (host name) to which the data stored in theis object belongs.


setTime

public void setTime(long t)
Sets the time of in milliseconds (since Jan 1970) when the data in the object was created. Not used currently.


getTime

public long getTime()
Returns the time of in milliseconds (since Jan 1970) when the data in the object was created. Not used currently.