net.fenyo.gnetwatch.data
Class EventGenericProcess

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

public class EventGenericProcess
extends EventGeneric

This event stores the last RTT computed.

Version:
$Id: EventGenericProcess.java,v 1.1 2008/05/21 16:46:06 fenyo Exp $
Author:
Alexandre Fenyo

Field Summary
private  int delay
           
private static Log log
           
private  boolean reachable
           
 
Constructor Summary
EventGenericProcess()
          Default constructor.
EventGenericProcess(boolean reachable)
          Constructor.
EventGenericProcess(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

EventGenericProcess

public EventGenericProcess(boolean reachable,
                           int delay)
Constructor.

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

EventGenericProcess

public EventGenericProcess(boolean reachable)
Constructor.

Parameters:
reachable - true if RTT < +inft

EventGenericProcess

public EventGenericProcess()
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)