Content-Based Networking Simulation Library Documentation (v. 1.2.1) |
00001 // -*- C++ -*- 00002 // 00003 // This file is part of CBNSIM, the Content-Based Networking 00004 // Simulation Library. 00005 // 00006 // Authors: See the file AUTHORS for full details. 00007 // 00008 // Copyright (C) 2002-2004 University of Colorado 00009 // 00010 // This program is free software; you can redistribute it and/or 00011 // modify it under the terms of the GNU General Public License 00012 // as published by the Free Software Foundation; either version 2 00013 // of the License, or (at your option) any later version. 00014 // 00015 // This program is distributed in the hope that it will be useful, 00016 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 // GNU General Public License for more details. 00019 // 00020 // You should have received a copy of the GNU General Public License 00021 // along with this program; if not, write to the Free Software 00022 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, 00023 // USA, or send email to serl@cs.colorado.edu. 00024 // 00025 // $Id: SetPredicateWNPF.h,v 1.2 2004/02/03 06:16:21 hallcp Exp $ 00026 // 00027 #ifndef CBNSIM_SETPREDICATEWNPF_H 00028 #define CBNSIM_SETPREDICATEWNPF_H 00029 00030 #include "cbnsim/WorkloadNodeProcessFactory.h" 00031 00032 namespace cbnsim 00033 { 00036 class SetPredicateWNPF : public WorkloadNodeProcessFactory 00037 { 00038 public: 00041 SetPredicateWNPF(); 00042 00046 bool applies_to( NodeType nt ); 00047 00050 bool handle_argument( std::vector<std::string>::const_iterator& itr, 00051 std::vector<std::string>::const_iterator end ) throw ( argument_exception ); 00052 00055 WorkloadNodeProcess* newWorkloadNodeProcess( unsigned int nid, 00056 std::ostream& out, 00057 ssbg::SSBG& ssbg, 00058 double wtu ) throw (); 00059 00062 virtual void print_optional_usage( std::ostream& out ); 00063 00066 virtual void print_required_usage( std::ostream& out ); 00067 00070 void print_setting_summary( std::ostream& out ); 00071 00075 virtual bool satisfied() const; 00076 00077 private: 00078 double m_delay; 00079 bool m_t0_pred; 00080 double m_msg_rate; 00081 }; 00082 }; 00083 00084 #endif
Copyright © 2001-2004 University of Colorado.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". This documentation is authored and maintained by Matthew J. Rutherford |