jaga.pj.circuits.experiment
Interface BooleanFunction
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- Add1bitQFun, XOrFunction, OrFunction, AndFunction, Add1bitCFun, ManCarAddFunction, MUXFunction, TableBooleanFunction
- public interface BooleanFunction
- extends java.io.Serializable
An interface used to represent boolean functions
Method Summary |
int |
getNumOfInputs()
returns the amount of inputs needed to compute this function |
boolean |
getResult(boolean[] inputs)
returns the result of this function given the inputs in the array |
SampleData[] |
getTestData()
returns a set of SampleDatas providing a good set of input samples
to test this function |
void |
setRandomSeed(long seed)
|
getResult
public boolean getResult(boolean[] inputs)
- returns the result of this function given the inputs in the array
- Parameters:
inputs
- what values the inputs to the function have
getNumOfInputs
public int getNumOfInputs()
- returns the amount of inputs needed to compute this function
getTestData
public SampleData[] getTestData()
- returns a set of SampleDatas providing a good set of input samples
to test this function
setRandomSeed
public void setRandomSeed(long seed)