Package edu.gatech.cs2110.circuitsim.api
Class InputPin
- java.lang.Object
-
- edu.gatech.cs2110.circuitsim.api.BasePin
-
- edu.gatech.cs2110.circuitsim.api.InputPin
-
public class InputPin extends BasePin
Wraps a CircuitSim inputPin
component and provides a convenience method for setting its value.
-
-
Field Summary
-
Fields inherited from class edu.gatech.cs2110.circuitsim.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 providedPin
component and which lives in the providedSubcircuit
.
-
Method Summary
All Methods Instance Methods Concrete Methods 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 edu.gatech.cs2110.circuitsim.api.BasePin
getPin, getSubcircuit
-
-
-
-
Constructor Detail
-
InputPin
public InputPin(com.ra4king.circuitsim.simulator.components.wiring.Pin pin, Subcircuit subcircuit)
Creates a new InputPin which wraps the providedPin
component and which lives in the providedSubcircuit
.- Parameters:
pin
-Pin
component to wrapsubcircuit
- where this pin lives- See Also:
BasePin(Pin, Subcircuit)
-
-