Class InputPin

java.lang.Object
io.zucchini.circuitsimtester.api.BasePin
io.zucchini.circuitsimtester.api.InputPin

public class InputPin extends BasePin
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

    Constructors
    Constructor
    Description
    InputPin(com.ra4king.circuitsim.simulator.components.wiring.Pin pin, Subcircuit subcircuit)
    Creates a new InputPin which wraps the provided Pin component and which lives in the provided Subcircuit.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    set(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • InputPin

      public InputPin(com.ra4king.circuitsim.simulator.components.wiring.Pin pin, Subcircuit subcircuit)
      Creates a new InputPin which wraps the provided Pin component and which lives in the provided Subcircuit.
      Parameters:
      pin - Pin component to wrap
      subcircuit - 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.