Class InputPin
java.lang.Object
io.zucchini.circuitsimtester.api.BasePin
io.zucchini.circuitsimtester.api.InputPin
Wraps a CircuitSim input
Pin component and provides a
convenience method for setting its value.-
Field Summary
Fields inherited from class io.zucchini.circuitsimtester.api.BasePin
pin, subcircuit -
Constructor Summary
ConstructorsConstructorDescriptionInputPin(com.ra4king.circuitsim.simulator.components.wiring.Pin pin, Subcircuit subcircuit) Creates a new InputPin which wraps the providedPincomponent and which lives in the providedSubcircuit. -
Method Summary
Modifier and TypeMethodDescriptionvoidset(int value) Sets the value of this input pin and allows the change to propagate through the circuit.Methods inherited from class io.zucchini.circuitsimtester.api.BasePin
getPin, getSubcircuit
-
Constructor Details
-
InputPin
Creates a new InputPin which wraps the providedPincomponent and which lives in the providedSubcircuit.- Parameters:
pin-Pincomponent to wrapsubcircuit- where this pin lives- See Also:
-
-
Method Details
-
set
public void set(int value) Sets the value of this input pin and allows the change to propagate through the circuit.- Parameters:
value- what to set the pin to. Negative numbers are fine.
-