Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

YadaMethod Class Reference
[YadaConfiguration - managing configurationsYadaScheduler - the data workhorse]

Inheritance diagram for YadaMethod:

Inheritance graph
[legend]
Collaboration diagram for YadaMethod:

Collaboration graph
[legend]
List of all members.

Detailed Description

YadaMethod - bundled information about a method. A YadaMethod is the central object of the YADA application. It brings together all the parts that are needed to compute a YadaJob forking a cdgp process in the background and consuming the so produced data.

Author:
Michael Daum
Id
YadaMethod.tcl,v 1.18 2003/02/07 16:55:13 micha Exp

Definition at line 22 of file YadaMethod.tcl.

Public Member Functions

 apply (YadaJob job)
 check ()
 clone (TclList args)
 displayTitle ()
 fromDOM (domNode node)
 getDocFileName ()
 getLogFileName (TclString wgName)
virtual getPersistanceFileName ()=0
 getXmlFileName (TclString wgName)
 hasSavedState ()
 isModified ()
 load ()
 print (TclString message)
 resetModified ()
 resetStatistics ()
 save ()
 setModified ()
 toDOM ()
 YadaMethod (TclList args)

Public Attributes

TclString command = ""
TclString dataDir = ""
TclString grammarName = ""
TclNumber isActive = 1
TclNumber isComplete = 0
TclNumber isUpToDate = 0
TclNumber labelledHits = 0
TclNumber lexicalHits = 0
TclString machineName = "localhost"
TclString name = ""
TclString printCommand = ""
TclString script = ""
TclNumber strictHits = 0
TclNumber structHits = 0
TclNumber totalScore = 0
TclNumber totalSoftTime = 0
TclNumber totalSolTime = 0
TclNumber totalTime = 0
TclNumber totalTries = 0
TclString type = ""

Protected Attributes

TclNumber _modified = 0


Constructor & Destructor Documentation

YadaMethod::YadaMethod TclList  args  ) 
 

constructor

Definition at line 121 of file YadaMethod.tcl.


Member Function Documentation

YadaMethod::apply YadaJob  job  ) 
 

apply

Definition at line 193 of file YadaMethod.tcl.

References apply().

Referenced by apply().

YadaMethod::check  ) 
 

check

Definition at line 157 of file YadaMethod.tcl.

References check().

Referenced by check().

YadaMethod::clone TclList  args  ) 
 

clone

Definition at line 137 of file YadaMethod.tcl.

References clone().

Referenced by clone().

YadaConfigItem::displayTitle  )  [inherited]
 

Displays title in main window (reflecting modification state of document).

Definition at line 128 of file YadaConfigItem.tcl.

YadaMethod::getDocFileName  ) 
 

getDocFileName

Definition at line 240 of file YadaMethod.tcl.

References getDocFileName().

Referenced by getDocFileName().

YadaMethod::getLogFileName TclString  wgName  ) 
 

getLogFileName

Definition at line 233 of file YadaMethod.tcl.

References getLogFileName().

Referenced by getLogFileName().

YadaMethod::getXmlFileName TclString  wgName  ) 
 

getXmlFileName

Definition at line 226 of file YadaMethod.tcl.

References getXmlFileName().

Referenced by getXmlFileName().

YadaConfigItem::hasSavedState  )  [inherited]
 

Predicate returning 1, if file containing persistant state of YadaGrammar exists, otherwise 0 Definition at line 115 of file YadaConfigItem.tcl.

YadaConfigItem::isModified  )  [inherited]
 

Predicate returning 1, if configuration data has changed, 0 otherwise.

Definition at line 87 of file YadaConfigItem.tcl.

YadaConfigItem::load  )  [inherited]
 

Loads object state from unique file (depends on object name).

Definition at line 66 of file YadaConfigItem.tcl.

YadaMethod::print TclString  message  ) 
 

print

Definition at line 217 of file YadaMethod.tcl.

References print().

Referenced by print().

YadaConfigItem::resetModified  )  [inherited]
 

Removes modification mark.

Definition at line 105 of file YadaConfigItem.tcl.

YadaMethod::resetStatistics  ) 
 

resetStatistics

Definition at line 247 of file YadaMethod.tcl.

References resetStatistics().

Referenced by resetStatistics().

YadaConfigItem::save  )  [inherited]
 

Serializes object state to unique file (depends on object name).

Definition at line 45 of file YadaConfigItem.tcl.

YadaConfigItem::setModified  )  [inherited]
 

Marks item as modified.

Definition at line 94 of file YadaConfigItem.tcl.


Member Data Documentation

TclString YadaMethod::command = ""
 

path to cdgp binary file

Definition at line 47 of file YadaMethod.tcl.

TclString YadaMethod::dataDir = ""
 

path where to store all computed data files

Definition at line 50 of file YadaMethod.tcl.

TclString YadaMethod::grammarName = ""
 

YadaGrammar to appy this method.

Definition at line 53 of file YadaMethod.tcl.

TclNumber YadaMethod::isActive = 1
 

flag indicating whether this method is currently waiting for a YadaJob to finish. Definition at line 63 of file YadaMethod.tcl.

TclNumber YadaMethod::isComplete = 0
 

flag indicating whether all data has been computed for this method, so no more YadaJobs are needed. Definition at line 67 of file YadaMethod.tcl.

TclNumber YadaMethod::isUpToDate = 0
 

flag indicating whether all statistics in all data has been collected or not. Definition at line 71 of file YadaMethod.tcl.

TclNumber YadaMethod::labelledHits = 0
 

labelled hits collected in the methods data files.

Definition at line 81 of file YadaMethod.tcl.

TclNumber YadaMethod::lexicalHits = 0
 

lexical hits collected in the methods data files.

Definition at line 87 of file YadaMethod.tcl.

TclString YadaMethod::machineName = "localhost"
 

YadaMachine where to schedule resulting YadaJobs on.

Definition at line 56 of file YadaMethod.tcl.

TclString YadaMethod::name = ""
 

the name of the method

Reimplemented from YadaConfigItem.

Definition at line 28 of file YadaMethod.tcl.

TclString YadaMethod::printCommand = ""
 

tcl command used to print a message.

See also:
print()
Definition at line 75 of file YadaMethod.tcl.

YadaMethod::script = ""
 

CDGP script to feed into the STDIN of a CdgProcess.

Definition at line 264 of file YadaMethod.tcl.

TclNumber YadaMethod::strictHits = 0
 

strict hits collected in the methods data files.

Definition at line 84 of file YadaMethod.tcl.

TclNumber YadaMethod::structHits = 0
 

struct hits collected in the methods data files.

Definition at line 90 of file YadaMethod.tcl.

TclNumber YadaMethod::totalScore = 0
 

total scores collected in the methods data files.

Definition at line 78 of file YadaMethod.tcl.

TclNumber YadaMethod::totalSoftTime = 0
 

total soft time collected in the methods data files.

Definition at line 102 of file YadaMethod.tcl.

TclNumber YadaMethod::totalSolTime = 0
 

total solution time collected in the methods data files.

Definition at line 99 of file YadaMethod.tcl.

TclNumber YadaMethod::totalTime = 0
 

total time collected in the methods data files.

Definition at line 96 of file YadaMethod.tcl.

TclNumber YadaMethod::totalTries = 0
 

total number of tries collected in the methods data files.

Definition at line 93 of file YadaMethod.tcl.

TclString YadaMethod::type = ""
 

the type of the method. The type of the method specifies the parsing flavour used. Possible sensefull values by now are

  • annotation (which is actually now parsing flavour but a way to compute parses via anno2parse())
  • arcconsistency
  • frobbing
  • genetic
  • gls
  • incremental completition
  • isearch
  • netsearch
  • pruning
  • wfst
Definition at line 44 of file YadaMethod.tcl.


The documentation for this class was generated from the following file:
YADA 2.0-alpha (20 Oct 2004)