marf.nlp.Parsing.GrammarCompiler
Class ProbabilisticRule

java.lang.Object
  extended by marf.nlp.Parsing.GrammarCompiler.Rule
      extended by marf.nlp.Parsing.GrammarCompiler.ProbabilisticRule
All Implemented Interfaces:
java.io.Serializable

public class ProbabilisticRule
extends Rule

Probabilistic Rule. $Id: ProbabilisticRule.java,v 1.7 2005/06/16 19:58:57 mokhov Exp $

Since:
0.3.0
Version:
$Revision: 1.7 $
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(NonTerminal pLHS)
           
 
Method Summary
static java.lang.String getMARFSourceCodeRevision()
          Retrieves class' revision.
 double getProbability()
          Retrieves probability of the rule.
 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(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.


getMARFSourceCodeRevision

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

Returns:
revision string