net.fenyo.gnetwatch.data
Class EventReachable

java.lang.Object
  extended by net.fenyo.gnetwatch.data.EventGeneric
      extended by net.fenyo.gnetwatch.data.EventReachable

public class EventReachable
extends EventGeneric

This event stores the last RTT computed.

Version:
$Id: EventReachable.java,v 1.14 2008/04/26 22:38:34 fenyo Exp $
Author:
Alexandre Fenyo

Field Summary
private  int delay
           
private static Log log
           
private  boolean reachable
           
 
Constructor Summary
EventReachable()
          Default constructor.
EventReachable(boolean reachable)
          Constructor.
EventReachable(boolean reachable, int delay)
          Constructor.
 
Method Summary
 int getDelay()
          Returns the RTT associated to this event.
 int getIntValue()
          Returns an integer representation of the performance counter associated whith this event.
 boolean isReachable()
           
 void setDelay(int delay)
           
 void setIntValue(int value)
           
 void setReachable(boolean reachable)
           
 
Methods inherited from class net.fenyo.gnetwatch.data.EventGeneric
getDate, getEventList, getId, setDate, setEventList, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static Log log

reachable

private boolean reachable

delay

private int delay
Constructor Detail

EventReachable

public EventReachable(boolean reachable,
                      int delay)
Constructor.

Parameters:
reachable - true if RTT < +inft
delay - RTT if reachable is true

EventReachable

public EventReachable(boolean reachable)
Constructor.

Parameters:
reachable - true if RTT < +inft

EventReachable

public EventReachable()
Default constructor.

Parameters:
none. -
Method Detail

getIntValue

public int getIntValue()
Returns an integer representation of the performance counter associated whith this event.

Overrides:
getIntValue in class EventGeneric
Parameters:
events - every event.
Returns:
int performance counter.

setIntValue

public void setIntValue(int value)
Overrides:
setIntValue in class EventGeneric

getDelay

public int getDelay()
Returns the RTT associated to this event.

Parameters:
none. -
Returns:
int RTT.

setDelay

public void setDelay(int delay)

isReachable

public boolean isReachable()

setReachable

public void setReachable(boolean reachable)