package Neuro; /** * an simple input element E0 or E1. This class is private with the package. * NeuronalNetwork * * @see NeuronalElement * @see NeuronalNetwork */ class Input extends NeuronalElement { private int value = 0; public Input( int value ) throws NeuroException { if ( !( value == 0 || value == 1 ) ) throw new NeuroException( "only E0 and E1 allowed" ); this.value = value; } public int value() throws NeuroException { return value; } }