|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlogic.Formula
logic.ProbabilisticNext
public class ProbabilisticNext
Probabilistic Next
Represents a subformula containing at least one probabilistic expression.Copyright(c) 2005 Université Laval, LSFM research group.
Field Summary |
---|
Fields inherited from class logic.Formula |
---|
subFormula |
Constructor Summary | |
---|---|
ProbabilisticNext(java.lang.String action,
double probability,
Formula subFormula)
Represents a probabilistic expression followed by a subformula. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Determines if the specified object is a Probabilistic Next operator |
java.lang.String |
getAction()
Access the action attached to the probabilistic expression |
double |
getProbability()
Access the probability attached to the probabilistic expression |
java.lang.String |
getType()
Return a string that identifies a Probabilistic Next operator |
void |
setAction(java.lang.String action)
Sets the action attached to the probabilistic expression |
void |
setProbability(double probability)
Sets the probability attached to the probabilistic expression |
java.lang.String |
toString()
Converts the expression to a string recognizable by the parser |
Methods inherited from class logic.Formula |
---|
depth, getSubFormula, setSubFormula |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProbabilisticNext(java.lang.String action, double probability, Formula subFormula)
action
- the action attached to the expressionprobability
- the minimum probability of occurencesubFormula
- the subformula following this expressionMethod Detail |
---|
public java.lang.String toString()
toString
in class Formula
public java.lang.String getAction()
public void setAction(java.lang.String action)
action
- the action to attachpublic double getProbability()
public void setProbability(double probability)
probability
- the probability to attachpublic java.lang.String getType()
getType
in class Formula
public boolean equals(java.lang.Object o)
equals
in class Formula
o
- the object to verify
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |