Package edu.gatech.cs2110.circuitsim.api
Class BasePin
- java.lang.Object
-
- edu.gatech.cs2110.circuitsim.api.BasePin
-
public abstract class BasePin extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected com.ra4king.circuitsim.simulator.components.wiring.PinpinThePinwrapped by this instance.protected SubcircuitsubcircuitTheSubcircuitwhere this pin lives
-
Constructor Summary
Constructors Constructor Description BasePin(com.ra4king.circuitsim.simulator.components.wiring.Pin pin, Subcircuit subcircuit)Creates a new BasePin which wraps the providedPincomponent and which lives in the providedSubcircuit.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ra4king.circuitsim.simulator.components.wiring.PingetPin()Returns the internal CircuitSimPincomponent this object wraps.SubcircuitgetSubcircuit()Returns theSubcircuit, a wrapper around a CircuitSimCircuitBoardwhere this Pin lives.
-
-
-
Field Detail
-
pin
protected com.ra4king.circuitsim.simulator.components.wiring.Pin pin
ThePinwrapped by this instance.
-
subcircuit
protected Subcircuit subcircuit
TheSubcircuitwhere this pin lives
-
-
Constructor Detail
-
BasePin
public BasePin(com.ra4king.circuitsim.simulator.components.wiring.Pin pin, Subcircuit subcircuit)Creates a new BasePin which wraps the providedPincomponent and which lives in the providedSubcircuit.- Parameters:
pin-Pincomponent to wrapsubcircuit- where this pin lives
-
-
Method Detail
-
getPin
public com.ra4king.circuitsim.simulator.components.wiring.Pin getPin()
Returns the internal CircuitSimPincomponent this object wraps.This exposes an internal CircuitSim API. Do not use unless you know what you are doing.
- Returns:
- the CircuitSim
Pincomponent wrapped by this object. - See Also:
InputPin.set(int),OutputPin.get()
-
getSubcircuit
public Subcircuit getSubcircuit()
Returns theSubcircuit, a wrapper around a CircuitSimCircuitBoardwhere this Pin lives.- Returns:
- the
Subcircuitwhere this pin lives
-
-