DataForwardingHistory Class Reference

#include <one_phase_pull.hh>

Collaboration diagram for DataForwardingHistory:

Collaboration graph
[legend]

Detailed Description

Definition at line 228 of file one_phase_pull.hh.

Public Member Functions

bool alreadyForwardedToLibrary (u_int16_t agent_id)
bool alreadyForwardedToLibrary (u_int16_t sink_id)
bool alreadyForwardedToNetwork (int32_t node_id)
bool alreadyForwardedToNetwork (int32_t node_id)
bool alreadyReinforced ()
bool alreadyReinforced ()
 DataForwardingHistory ()
 DataForwardingHistory ()
void forwardingToLibrary (u_int16_t agent_id)
void forwardingToLibrary (u_int16_t sink_id)
void forwardingToNetwork (int32_t node_id)
void forwardingToNetwork (int32_t node_id)
void sendingReinforcement ()
void sendingReinforcement ()
 ~DataForwardingHistory ()
 ~DataForwardingHistory ()

Private Attributes

list< u_int16_tagent_list_
bool data_reinforced_
list< int32_tnode_list_
list< int32_tnode_list_
list< u_int16_tsink_list_


Constructor & Destructor Documentation

DataForwardingHistory::DataForwardingHistory  )  [inline]
 

Definition at line 230 of file one_phase_pull.hh.

References data_reinforced_.

00231   {
00232     data_reinforced_ = false;
00233   };

DataForwardingHistory::~DataForwardingHistory  )  [inline]
 

Definition at line 235 of file one_phase_pull.hh.

References node_list_, and sink_list_.

00236   {
00237     node_list_.clear();
00238     sink_list_.clear();
00239   };

DataForwardingHistory::DataForwardingHistory  )  [inline]
 

Definition at line 201 of file two_phase_pull.hh.

References data_reinforced_.

00202   {
00203     data_reinforced_ = false;
00204   };

DataForwardingHistory::~DataForwardingHistory  )  [inline]
 

Definition at line 206 of file two_phase_pull.hh.

References agent_list_, and node_list_.

00207   {
00208     node_list_.clear();
00209     agent_list_.clear();
00210   };


Member Function Documentation

bool DataForwardingHistory::alreadyForwardedToLibrary u_int16_t  agent_id  )  [inline]
 

Definition at line 222 of file two_phase_pull.hh.

References agent_list_.

00223   {
00224     list<u_int16_t>::iterator list_itr;
00225 
00226     list_itr = find(agent_list_.begin(), agent_list_.end(), agent_id);
00227     if (list_itr == agent_list_.end())
00228       return false;
00229     return true;
00230   };

bool DataForwardingHistory::alreadyForwardedToLibrary u_int16_t  sink_id  )  [inline]
 

Definition at line 251 of file one_phase_pull.hh.

References sink_list_.

Referenced by GradientFilter::forwardData(), OnePhasePullFilter::forwardData(), GradientFilter::forwardExploratoryData(), and GradientFilter::forwardPushExploratoryData().

00252   {
00253     list<u_int16_t>::iterator list_itr;
00254 
00255     list_itr = find(sink_list_.begin(), sink_list_.end(), sink_id);
00256     if (list_itr == sink_list_.end())
00257       return false;
00258     return true;
00259   };

bool DataForwardingHistory::alreadyForwardedToNetwork int32_t  node_id  )  [inline]
 

Definition at line 212 of file two_phase_pull.hh.

References node_list_.

00213   {
00214     list<int32_t>::iterator list_itr;
00215 
00216     list_itr = find(node_list_.begin(), node_list_.end(), node_id);
00217     if (list_itr == node_list_.end())
00218       return false;
00219     return true;
00220   };

bool DataForwardingHistory::alreadyForwardedToNetwork int32_t  node_id  )  [inline]
 

Definition at line 241 of file one_phase_pull.hh.

References node_list_.

00242   {
00243     list<int32_t>::iterator list_itr;
00244 
00245     list_itr = find(node_list_.begin(), node_list_.end(), node_id);
00246     if (list_itr == node_list_.end())
00247       return false;
00248     return true;
00249   };

bool DataForwardingHistory::alreadyReinforced  )  [inline]
 

Definition at line 232 of file two_phase_pull.hh.

References data_reinforced_.

00233   {
00234     return data_reinforced_;
00235   };

bool DataForwardingHistory::alreadyReinforced  )  [inline]
 

Definition at line 261 of file one_phase_pull.hh.

References data_reinforced_.

00262   {
00263     return data_reinforced_;
00264   };

void DataForwardingHistory::forwardingToLibrary u_int16_t  agent_id  )  [inline]
 

Definition at line 247 of file two_phase_pull.hh.

References agent_list_.

00248   {
00249     agent_list_.push_back(agent_id);
00250   };

void DataForwardingHistory::forwardingToLibrary u_int16_t  sink_id  )  [inline]
 

Definition at line 276 of file one_phase_pull.hh.

References sink_list_.

Referenced by GradientFilter::forwardData(), OnePhasePullFilter::forwardData(), GradientFilter::forwardExploratoryData(), and GradientFilter::forwardPushExploratoryData().

00277   {
00278     sink_list_.push_back(sink_id);
00279   };

void DataForwardingHistory::forwardingToNetwork int32_t  node_id  )  [inline]
 

Definition at line 242 of file two_phase_pull.hh.

References node_list_.

00243   {
00244     node_list_.push_back(node_id);
00245   };

void DataForwardingHistory::forwardingToNetwork int32_t  node_id  )  [inline]
 

Definition at line 271 of file one_phase_pull.hh.

References node_list_.

00272   {
00273     node_list_.push_back(node_id);
00274   };

void DataForwardingHistory::sendingReinforcement  )  [inline]
 

Definition at line 237 of file two_phase_pull.hh.

References data_reinforced_.

00238   {
00239     data_reinforced_ = true;
00240   };

void DataForwardingHistory::sendingReinforcement  )  [inline]
 

Definition at line 266 of file one_phase_pull.hh.

References data_reinforced_.

00267   {
00268     data_reinforced_ = true;
00269   };


Field Documentation

list<u_int16_t> DataForwardingHistory::agent_list_ [private]
 

Definition at line 254 of file two_phase_pull.hh.

Referenced by alreadyForwardedToLibrary(), forwardingToLibrary(), and ~DataForwardingHistory().

bool DataForwardingHistory::data_reinforced_ [private]
 

Definition at line 284 of file one_phase_pull.hh.

Referenced by alreadyReinforced(), DataForwardingHistory(), and sendingReinforcement().

list<int32_t> DataForwardingHistory::node_list_ [private]
 

Definition at line 250 of file two_phase_pull.hh.

list<int32_t> DataForwardingHistory::node_list_ [private]
 

Definition at line 279 of file one_phase_pull.hh.

Referenced by alreadyForwardedToNetwork(), forwardingToNetwork(), and ~DataForwardingHistory().

list<u_int16_t> DataForwardingHistory::sink_list_ [private]
 

Definition at line 283 of file one_phase_pull.hh.

Referenced by alreadyForwardedToLibrary(), forwardingToLibrary(), and ~DataForwardingHistory().


The documentation for this class was generated from the following files:
Generated on Tue Mar 6 17:05:11 2007 for ns2 Network Simulator 2.29 by  doxygen 1.4.6