Public Member Functions | Data Fields

FailHistory Struct Reference

#include <Congestion.h>

Public Member Functions

 FailHistory ()
void init (int window)
void init_event (long t, int n=1)
int regist_event (long t, int n=1)
int get_bin_events (int index)

Data Fields

long start
int bin_len
int length
cong_hist_t bins [CONG_HIST_ENTRIES]
int cur_index
long last_event
int events

Detailed Description

Definition at line 175 of file Congestion.h.


Constructor & Destructor Documentation

FailHistory::FailHistory (  )  [inline]

Definition at line 185 of file Congestion.h.

References bins.


Member Function Documentation

int FailHistory::get_bin_events ( int  index  )  [inline]

Definition at line 192 of file Congestion.h.

References bins, CONG_HIST_ENTRIES, and cur_index.

void FailHistory::init ( int  window  ) 

Definition at line 493 of file Congestion.cc.

References bin_len, bins, CONG_HIST_ENTRIES, cur_index, events, last_event, length, and start.

Referenced by CongestionEntry::clearFailHistory().

void FailHistory::init_event ( long  t,
int  n = 1 
)

Definition at line 509 of file Congestion.cc.

References bin_len, bins, cur_index, events, last_event, length, and start.

Referenced by regist_event().

int FailHistory::regist_event ( long  t,
int  n = 1 
)

Definition at line 522 of file Congestion.cc.

References bin_len, bins, CONG_HIST_ENTRIES, cur_index, events, init_event(), last_event, length, and start.

Referenced by CongestionEntry::failed_at().


Field Documentation

Definition at line 178 of file Congestion.h.

Referenced by CCFailHistoryTestCont::check_history(), init(), init_event(), and regist_event().

cong_hist_t FailHistory::bins[CONG_HIST_ENTRIES]

Definition at line 179 of file Congestion.h.

Referenced by CCFailHistoryTestCont::check_history(), init(), init_event(), and regist_event().

Definition at line 177 of file Congestion.h.

Referenced by CCFailHistoryTestCont::check_history(), init(), init_event(), and regist_event().


The documentation for this struct was generated from the following files: