public class TableLine
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
TableLine(double prob,
int result,
int[] args)
Construct a truth table line.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
compareArgs(int[] args)
Compare this truth line's arguments to others.
|
int[] |
getArguments() |
double |
getProbability() |
int |
getResult() |
void |
setProbability(double probability)
Set the probability of this line.
|
java.lang.String |
toString() |
public TableLine(double prob,
int result,
int[] args)
prob - The probability.result - The result.args - The arguments.public double getProbability()
public int[] getArguments()
public int getResult()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean compareArgs(int[] args)
args - The other arguments to compare to.public void setProbability(double probability)
probability - The probability of this line.