jaga.pj.circuits.experiment
Class Add1bitQFun

java.lang.Object
  |
  +--jaga.pj.circuits.experiment.Add1bitQFun
All Implemented Interfaces:
BooleanFunction, java.io.Serializable

public class Add1bitQFun
extends java.lang.Object
implements BooleanFunction

See Also:
Serialized Form

Constructor Summary
Add1bitQFun()
           
 
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)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Add1bitQFun

public Add1bitQFun()
Method Detail

getResult

public boolean getResult(boolean[] inputs)
returns the result of this function given the inputs in the array
Specified by:
getResult in interface BooleanFunction
Parameters:
inputs - what values the inputs to the function have

getNumOfInputs

public int getNumOfInputs()
returns the amount of inputs needed to compute this function
Specified by:
getNumOfInputs in interface BooleanFunction

getTestData

public SampleData[] getTestData()
returns a set of SampleDatas providing a good set of input samples to test this function
Specified by:
getTestData in interface BooleanFunction

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setRandomSeed

public void setRandomSeed(long seed)
Specified by:
setRandomSeed in interface BooleanFunction