Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::ShellProgressBar Class Reference

#include <ShellProgressBar.h>

Collaboration diagram for PLearn::ShellProgressBar:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ShellProgressBar ()
 ShellProgressBar (int min, int max, string caption="", int width=10)
void init ()
void draw (bool simple_mode=false)
bool update (int value)
void reset ()
void set (int min, int max, string caption="", int w=10)
void setCaption (string caption)
void setMin (int min)
void setMax (int max)
void done ()

Static Public Member Functions

string getTime ()
int getAsciiFileLineCount (string file)
int getWcAsciiFileLineCount (string file)

Private Attributes

int min
int max
real blockwidth
int pos
string caption
int width
bool max_reached

Constructor & Destructor Documentation

PLearn::ShellProgressBar::ShellProgressBar  )  [inline]
 

Definition at line 79 of file ShellProgressBar.h.

References caption, max, min, and width.

PLearn::ShellProgressBar::ShellProgressBar int  min,
int  max,
string  caption = "",
int  width = 10
 

Definition at line 47 of file ShellProgressBar.cc.

References init(), PLearn::max(), and PLearn::min().


Member Function Documentation

void PLearn::ShellProgressBar::done  ) 
 

Definition at line 127 of file ShellProgressBar.cc.

References PLearn::endl(), getTime(), max, max_reached, and PLearn::update().

Referenced by PLearn::GraphicalBiText::compute_likelihood(), PLearn::WordNetOntology::extract(), PLearn::WordNetOntology::extractTaggedWordFrequencies(), PLearn::GraphicalBiText::init(), PLearn::WordNetOntology::load(), PLearn::GraphicalBiText::loadBitext(), PLearn::loadToVMat(), main(), PLearn::GraphicalBiText::print(), PLearn::WordNetOntology::reducePolysemy(), PLearn::GraphicalBiText::sensetag_valid_bitext(), PLearn::GraphicalBiText::senseTagBitext(), PLearn::GraphicalBiText::test_WSD(), and PLearn::GraphicalBiText::update_WSD_model().

void PLearn::ShellProgressBar::draw bool  simple_mode = false  ) 
 

Definition at line 60 of file ShellProgressBar.cc.

References caption, getTime(), PLearn::tostring(), and width.

Referenced by PLearn::GraphicalBiText::compute_likelihood(), PLearn::WordNetOntology::extract(), PLearn::WordNetOntology::extractTaggedWordFrequencies(), PLearn::GraphicalBiText::init(), PLearn::WordNetOntology::load(), PLearn::GraphicalBiText::loadBitext(), PLearn::loadToVMat(), main(), PLearn::GraphicalBiText::print(), PLearn::WordNetOntology::reducePolysemy(), PLearn::GraphicalBiText::sensetag_valid_bitext(), PLearn::GraphicalBiText::senseTagBitext(), PLearn::GraphicalBiText::test_WSD(), and PLearn::GraphicalBiText::update_WSD_model().

int PLearn::ShellProgressBar::getAsciiFileLineCount string  file  )  [static]
 

Definition at line 134 of file ShellProgressBar.cc.

References PLearn::pgetline().

string PLearn::ShellProgressBar::getTime  )  [static]
 

Definition at line 157 of file ShellProgressBar.cc.

References PLearn::split().

Referenced by done(), and draw().

int PLearn::ShellProgressBar::getWcAsciiFileLineCount string  file  )  [static]
 

Definition at line 150 of file ShellProgressBar.cc.

References PLearn::execute(), and PLearn::toint().

void PLearn::ShellProgressBar::init  ) 
 

Definition at line 53 of file ShellProgressBar.cc.

References blockwidth, max, max_reached, min, pos, and width.

Referenced by PLearn::GraphicalBiText::compute_likelihood(), PLearn::GraphicalBiText::init(), PLearn::GraphicalBiText::loadBitext(), main(), PLearn::GraphicalBiText::print(), PLearn::WordNetOntology::reducePolysemy(), PLearn::GraphicalBiText::sensetag_valid_bitext(), PLearn::GraphicalBiText::senseTagBitext(), ShellProgressBar(), PLearn::GraphicalBiText::test_WSD(), and PLearn::GraphicalBiText::update_WSD_model().

void PLearn::ShellProgressBar::reset  ) 
 

Definition at line 106 of file ShellProgressBar.cc.

References max_reached, and pos.

Referenced by main().

void PLearn::ShellProgressBar::set int  min,
int  max,
string  caption = "",
int  w = 10
[inline]
 

Definition at line 89 of file ShellProgressBar.h.

References PLearn::max(), PLearn::min(), setCaption(), setMax(), setMin(), and width.

Referenced by PLearn::GraphicalBiText::compute_likelihood(), PLearn::GraphicalBiText::init(), PLearn::GraphicalBiText::loadBitext(), main(), and PLearn::GraphicalBiText::test_WSD().

void PLearn::ShellProgressBar::setCaption string  caption  ) 
 

Definition at line 112 of file ShellProgressBar.cc.

References caption.

Referenced by set().

void PLearn::ShellProgressBar::setMax int  max  ) 
 

Definition at line 122 of file ShellProgressBar.cc.

References max.

Referenced by set().

void PLearn::ShellProgressBar::setMin int  min  ) 
 

Definition at line 117 of file ShellProgressBar.cc.

References min.

Referenced by set().

bool PLearn::ShellProgressBar::update int  value  ) 
 

Definition at line 77 of file ShellProgressBar.cc.

References blockwidth, max, max_reached, min, pos, and width.

Referenced by PLearn::GraphicalBiText::compute_likelihood(), PLearn::WordNetOntology::extract(), PLearn::WordNetOntology::extractTaggedWordFrequencies(), PLearn::GraphicalBiText::init(), PLearn::WordNetOntology::load(), PLearn::GraphicalBiText::loadBitext(), PLearn::loadToVMat(), main(), PLearn::GraphicalBiText::print(), PLearn::WordNetOntology::reducePolysemy(), PLearn::GraphicalBiText::sensetag_valid_bitext(), PLearn::GraphicalBiText::senseTagBitext(), PLearn::GraphicalBiText::test_WSD(), and PLearn::GraphicalBiText::update_WSD_model().


Member Data Documentation

real PLearn::ShellProgressBar::blockwidth [private]
 

Definition at line 102 of file ShellProgressBar.h.

Referenced by init(), and update().

string PLearn::ShellProgressBar::caption [private]
 

Definition at line 104 of file ShellProgressBar.h.

Referenced by draw(), setCaption(), and ShellProgressBar().

int PLearn::ShellProgressBar::max [private]
 

Definition at line 101 of file ShellProgressBar.h.

Referenced by done(), init(), setMax(), ShellProgressBar(), and update().

bool PLearn::ShellProgressBar::max_reached [private]
 

Definition at line 106 of file ShellProgressBar.h.

Referenced by done(), init(), reset(), and update().

int PLearn::ShellProgressBar::min [private]
 

Definition at line 100 of file ShellProgressBar.h.

Referenced by init(), setMin(), ShellProgressBar(), and update().

int PLearn::ShellProgressBar::pos [private]
 

Definition at line 103 of file ShellProgressBar.h.

Referenced by init(), reset(), and update().

int PLearn::ShellProgressBar::width [private]
 

Definition at line 105 of file ShellProgressBar.h.

Referenced by draw(), init(), set(), ShellProgressBar(), and update().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:27:35 2004 for PLearn by doxygen 1.3.7