marf.nlp.Parsing.GrammarCompiler
Class ProbabilisticRule

java.lang.Object
  |
  +--marf.nlp.Parsing.GrammarCompiler.Rule
        |
        +--marf.nlp.Parsing.GrammarCompiler.ProbabilisticRule
All Implemented Interfaces:
java.io.Serializable

public class ProbabilisticRule
extends Rule

Probabilistic Rule. $Id: ProbabilisticRule.java,v 1.6 2005/06/01 05:35:09 mokhov Exp $

Since:
0.3.0
Version:
$Revision: 1.6 $
Author:
Serguei Mokhov
See Also:
Serialized Form

Field Summary
protected  double dProbability
          Probability of the rule.
 
Fields inherited from class marf.nlp.Parsing.GrammarCompiler.Rule
ID, LHS, RHS
 
Constructor Summary
ProbabilisticRule(marf.nlp.Parsing.GrammarCompiler.NonTerminal pLHS)
           
 
Method Summary
 double getProbability()
          Retrieves probability of the rule.
static java.lang.String getRevision()
          Retrieves class' revision.
 void setProbability(double pdProbability)
          Sets probability of the rule.
 
Methods inherited from class marf.nlp.Parsing.GrammarCompiler.Rule
addRHSElement, getID, getLHS, getRHS, getRHSFirstSet, setID, setLHS, setRHS, toAbbrString, toString, toStringNumeric
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dProbability

protected double dProbability
Probability of the rule.

Constructor Detail

ProbabilisticRule

public ProbabilisticRule(marf.nlp.Parsing.GrammarCompiler.NonTerminal pLHS)
Method Detail

setProbability

public final void setProbability(double pdProbability)
Sets probability of the rule.


getProbability

public final double getProbability()
Retrieves probability of the rule.


getRevision

public static java.lang.String getRevision()
Retrieves class' revision.

Returns:
revision string